Displays

Render formatted output from runs
Runs can use either the JavaScript or Python 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.

Text

Creates a display that renders markdown-rendered text.
typescript
Copied
1
await airplane.display.text(`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);
API
Example: Override column names

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.