Execute a workflow action and stream events via SSE
Executes a single workflow action step (tool invocation with runtime context) and streams the result back as Server-Sent Events. Same idempotency and resume semantics as POST /agent/runs: a retry with the same Idempotency-Key + same body resumes the existing stream.
Used by the agent builder test panel and automation pipelines to execute individual steps of a multi-step workflow.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Client-generated idempotency key (UUID recommended). Retry with same key + same body resumes the existing SSE stream. Same key + different body returns a 409 error event.
Body
Organization ID the run belongs to. Must match the authenticated principal's org.
Client-generated session identifier.
Workflow action descriptor: toolId, toolName, aiDescription, runtimeScope, and any action-specific parameters.
File thread ID for document-scoped execution.
Outputs from earlier steps in a multi-step workflow, forwarded to the action runtime.
IANA time zone name for the executing user (e.g. "America/New_York").
Optional client-supplied run ID. Idempotency-Key header takes precedence.
Agent (automation) id for usage attribution.
UI surface that triggered this action.
agent, api, other Response
SSE stream of workflow action run events. Same frame format as POST /agent/runs. Ends with a terminal RunEvent (done/error/cancelled).
W3C Server-Sent Events stream. Each frame: id: \n data: \n\n
RunEvent shapes are identical to POST /agent/runs.