Skip to main content
POST
Sends a prompt to the coding agent running in the session. Returns a streaming response with the agent’s output. Required scope: sessions:prompt

Path Parameters

string
required
The session ID (e.g. ses_abc123).

Headers

string
required
Bearer token. Example: Bearer runtm_xxx

Body

string
required
The prompt text to send to the agent.
string
Tab ID for multi-tab sessions. Defaults to the primary tab.

Response

Returns a streaming response (text/event-stream) with agent output events.
string
Event type: text, tool_use, tool_result, error, done.
string
Event content (text output, tool call details, etc.).