Displays

Render formatted output from runs
Runs can use the Node.js SDK to render formatted content within the run UI using displays. Displays are helpful for surfacing contextual information about a run to operators, such as:
  • Conveying the state of a run
  • Rendering output in a custom format
Displays are independent of run Output.

Markdown

Creates a display with markdown-rendered text.
typescript
Copied
1
await airplane.display.markdown(`Found **${users.length}** users from team "${team.name}".`);
API

Table

Creates a display that renders a list of rows in a table.
typescript
Copied
1
await airplane.display.table(users);
Example: Override column names
API

JSON

Creates a display that renders a JSON document with syntax highlighting.
typescript
Copied
1
await airplane.display.json(httpResponse);
API

File / image

Support for rendering files and images is coming soon.