AI Chat

Attach an interactive terminal to the user's global workspace

Changed on

Same protocol as the application workspace terminal, for a terminal thread of the signed-in user's private default workspace. Requires sandboxes:exec.

get/ai/workspace/terminal

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/workspace/terminal
  • Auth: HTTP bearer

Query parameters

threadstring required

Public id of the terminal thread to attach to.

colsinteger nullable

Initial terminal width in columns (default 80).

rowsinteger nullable

Initial terminal height in rows (default 24).

Changes