Stream Thread Events
Call Create session first and replace the example session ID with its returned ID.
/agent/v1/sessions/{session_id}/threads/{thread_id}/stream◐ PartialOfficial Claude documentation ↗
Request parameters
session_idstringrequiredpath: Session id (sesn_...), as returned by sessions.create or sessions.list. The same id is also accepted as the session_id query parameter on resource and thread calls, where it must equal the path value.
thread_idstringrequiredpath: Execution thread id (sthr_...), as listed by sessions.threads.list; the primary thread id equals the session's own thread. Unknown or foreign ids return 404.
session_idstringrequiredquery: Session id (sesn_...), as returned by sessions.create or sessions.list. The same id is also accepted as the session_id query parameter on resource and thread calls, where it must equal the path value.
event_deltasarrayoptionalquery: When set, this connection also receives streaming deltas (
event_start,event_delta) while an event is being produced, before the event itself arrives. Deltas are best-effort; when the final event is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no final event — its terminalspan.model_request_endcloses the preview. Accepts one or more event types to preview and may be repeated:agent.messagestreamscontent_deltafragments;agent.thinkingis start-only — a signal that the agent has begun extended thinking, concluded by theagent.thinkingevent itself. Only previews of the requested event types are sent.
Returns
200
Subscribes to the selected thread live ledger using the session SSE implementation; the /agent API also supports a read-only WebSocket. The parent stream includes child creation, status and message events. Child approvals carry session_thread_id; confirmations and interrupts targeting that id are routed to the owned child.
Errors follow the Anthropic error format (type / message / request_id) — see error codes
Request
curl
# Call Create session first and replace the example session ID with its returned ID.
curl https://api.deepraxis.com/agent/v1/sessions/sesn_123/threads/sthr_123/stream \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create session first and replace the example session ID with its returned ID.
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key="$PRAXIS_API_KEY",
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
f"{opts['base_url']}/v1/sessions/sesn_123/threads/sthr_123/stream",
headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())TypeScript
// Call Create session first and replace the example session ID with its returned ID.
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: "$PRAXIS_API_KEY",
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/sessions/sesn_123/threads/sthr_123/stream`, {
headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());Response 200
: connected
event: user.message
data: {"id":"2c48fe87-c521-47a8-a901-622af2c4a2ea","type":"user.message","processed_at":null,"content":[{"type":"text","text":"你好"}]}
event: session.status_running
data: {"id":"d6181599-6917-4ebc-ae49-78c508375546","type":"session.status_running","processed_at":"2026-09-29T08:30:36.495Z"}
event: user.message
data: {"id":"2c48fe87-c521-47a8-a901-622af2c4a2ea","type":"user.message","processed_at":"2026-09-29T08:30:36.495Z","content":[{"type":"text","text":"你好"}]}
event: span.model_request_start
data: {"id":"mreq_bXNnXzMxZmQ2NmU1LTE1ZjQtNDRhYi05Mjg3LWNjODlmODg1N2M1OQ","type":"span.model_request_start","processed_at":"2026-09-29T08:30:36.495Z"}
event: span.model_request_end
data: {"id":"4383d5b9-8155-4b62-8c68-66370c26e168","type":"span.model_request_end","processed_at":"2026-09-29T08:30:39.118Z","model_request_start_id":"mreq_bXNnXzMxZmQ2NmU1LTE1ZjQtNDRhYi05Mjg3LWNjODlmODg1N2M1OQ","is_error":null,"model_usage":{"input_tokens":149,"output_tokens":31,"cache_read_input_tokens":0,"cache_creation_input_tokens":0}}
event: agent.thinking
data: {"id":"sevt_384ed0411abf473685c85465662e1038","type":"agent.thinking","processed_at":"2026-09-29T08:30:39.118Z","content":[{"type":"text","text":"The user just said \"你好\" again. The instruction: answer in one short sentence. Just greet back briefly."}]}
event: agent.message
data: {"id":"sevt_011be427687b410994edcb3181e9cb90","type":"agent.message","processed_at":"2026-09-29T08:30:39.118Z","content":[{"type":"text","text":"你好!有什么需要帮忙的吗?"}]}
event: session.usage
data: {"id":"fca5e016-6813-4f8c-83d0-ae6ead22417a","type":"session.usage","processed_at":"2026-09-29T08:30:39.118Z","usage":{"input_tokens":285,"output_tokens":60,"cache_read_input_tokens":0}}
event: session.status_idle
data: {"id":"010f48f3-8698-406d-ae04-e4a45011e65f","type":"session.status_idle","processed_at":"2026-09-29T08:30:39.118Z","stop_reason":{"type":"end_turn"}}
Response
HTTP 200
Server-sent events
text/event-stream — chunk / event object
| Name | Type | Description |
|---|---|---|
| id | string | Identifier of the object, as returned by the API; pass it in the path of follow-up calls on the same resource. |
| event | string | Server-Sent Events event name of this frame. / Always system.message. SSE event name of this frame; its data is a system.message payload. A message produced by the platform rather than the user or the agent. / Always user.message. SSE event name of this frame; its data is a user.message payload. A message from the user to the agent, with content blocks. / Always user.interrupt. SSE event name of this frame; its data is a user.interrupt payload. The user interrupted the running turn. / Always agent.message. SSE event name of this frame; its data is a agent.message payload. A message from the agent, with text content blocks. / Always agent.thinking. SSE event name of this frame; its data is a agent.thinking payload. The agent's thinking text for a step. / Always session.status_running. SSE event name of this frame; its data is a session.status_running payload. The session started running a turn. / Always session.status_rescheduled. SSE event name of this frame; its data is a session.status_rescheduled payload. The session will retry after a recoverable error. / Always session.status_idle. SSE event name of this frame; its data is a session.status_idle payload. The session stopped running; stop_reason says why. / Always session.status_terminated. SSE event name of this frame; its data is a session.status_terminated payload. The session ended and accepts no more work. / Always agent.thread_context_compacting. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle. / Always agent.thread_context_compacted. SSE event name of this frame; its data is a agent.thread_context_compacted payload. The thread's context was compacted into a summary. / Always agent.thread_context_reset. SSE event name of this frame; its data is a agent.thread_context_reset payload. Content was removed from the model's context after a content-safety refusal. / Always session.updated. SSE event name of this frame; its data is a session.updated payload. The session's model, title, metadata, agent or budget changed. / Always session.error. SSE event name of this frame; its data is a session.error payload. The session hit an error. / Always session.usage. SSE event name of this frame; its data is a session.usage payload. Cumulative usage of the session. / Always span.model_request_start. SSE event name of this frame; its data is a span.model_request_start payload. A model request started. / Always span.model_request_end. SSE event name of this frame; its data is a span.model_request_end payload. A model request ended, with its usage. / Always agent.tool_use. SSE event name of this frame; its data is a agent.tool_use payload. The agent called a tool. / Always agent.tool_result. SSE event name of this frame; its data is a agent.tool_result payload. The result of a tool call. / Always agent.mcp_tool_use. SSE event name of this frame; its data is a agent.mcp_tool_use payload. The agent called an MCP tool. / Always agent.mcp_tool_result. SSE event name of this frame; its data is a agent.mcp_tool_result payload. The result of an MCP tool call. / Always user.tool_confirmation. SSE event name of this frame; its data is a user.tool_confirmation payload. The user's decision to allow or deny a tool call that waits for approval. / Always agent.custom_tool_use. SSE event name of this frame; its data is a agent.custom_tool_use payload. The agent called a custom tool defined by the client. / Always user.custom_tool_result. SSE event name of this frame; its data is a user.custom_tool_result payload. The user's result for a custom tool call. / Always session.thread_created. SSE event name of this frame; its data is a session.thread_created payload. A child thread was started. / Always session.thread_status_running. SSE event name of this frame; its data is a session.thread_status_running payload. A thread started running. / Always session.thread_status_idle. SSE event name of this frame; its data is a session.thread_status_idle payload. A thread stopped running; stop_reason says why. / Always session.thread_status_rescheduled. SSE event name of this frame; its data is a session.thread_status_rescheduled payload. A thread will retry after a recoverable error. / Always session.thread_status_terminated. SSE event name of this frame; its data is a session.thread_status_terminated payload. A thread ended. / Always agent.thread_message_sent. SSE event name of this frame; its data is a agent.thread_message_sent payload. The agent sent a message to another thread. / Always agent.thread_message_received. SSE event name of this frame; its data is a agent.thread_message_received payload. The agent received a message from another thread. / Always user.withdraw. SSE event name of this frame; its data is a user.withdraw payload. A queued user.message was withdrawn before it ran. / Always user.steer. SSE event name of this frame; its data is a user.steer payload. Receipt that a queued user.message was injected into the running turn. / Always system.notification. SSE event name of this frame; its data is a system.notification payload. Background work woke the session with a notification. / Always system.notification_suppressed. SSE event name of this frame; its data is a system.notification_suppressed payload. Pending background notifications started no run because the session hit its wake quota; reason says which. / Always system.notification_recorded. SSE event name of this frame; its data is a system.notification_recorded payload. Pending background notifications were recorded without a run because the agent has no model. / Always session.forked. SSE event name of this frame; its data is a session.forked payload. The session was created by forking another session. / Always session.goal_changed. SSE event name of this frame; its data is a session.goal_changed payload. The session's goal was set, changed status, accounted usage or was cleared. / Always session.goal_verification. SSE event name of this frame; its data is a session.goal_verification payload. One completion check of the session's goal started or ended. / Always cognition.surfaced. SSE event name of this frame; its data is a cognition.surfaced payload. A worker session reached a boundary and surfaced in this session. / Always cognition.intention_woken. SSE event name of this frame; its data is a cognition.intention_woken payload. The idle pass woke the session about one open intention. / Always agent.operation_approval_requested. SSE event name of this frame; its data is a agent.operation_approval_requested payload. The door held an outward or irreversible operation for the person to approve. / Always agent.operation_approval_decided. SSE event name of this frame; its data is a agent.operation_approval_decided payload. A held operation was approved, refused, or expired unanswered. / Always session.prompt_configuration_mismatch. SSE event name of this frame; its data is a session.prompt_configuration_mismatch payload. A pinned session runs a configuration revision its agent has since left. / Always session.prompt_rev_changed. SSE event name of this frame; its data is a session.prompt_rev_changed payload. A platform input (a prompt section, the catalog, the tool descriptions) moved without a version moving. / Always session.computer_tier. SSE event name of this frame; its data is a session.computer_tier payload. The session's machine escalated, came back, or reported its tier status. / Always agent.artifact_delivered. SSE event name of this frame; its data is a agent.artifact_delivered payload. A file, canvas or media asset the agent delivered was recorded as an artifact. / Always agent.image_generation. SSE event name of this frame; its data is a agent.image_generation payload. Retired imagine tool: one image request and how it ended. Old sessions still replay it. / Always session.image_labeled. SSE event name of this frame; its data is a session.image_labeled payload. Retired imagine tool: a picture was labelled in the session. Old sessions still replay it. / Always session.image_set_planned. SSE event name of this frame; its data is a session.image_set_planned payload. Retired imagine tool: one call planned a set of pictures. Old sessions still replay it. / Always session.project_attached. SSE event name of this frame; its data is a session.project_attached payload. The main session attached a project; it names the project, never its instructions. / Always session.project_detached. SSE event name of this frame; its data is a session.project_detached payload. The main session's project attachment ended. / Always session.status_preparing. SSE event name of this frame; its data is a session.status_preparing payload. A device session's local agent is starting; stage says how far it got. / Always event_start. SSE event name of this frame; its data is a event_start payload. Preview that an event of the requested delta types has started. / Always event_delta. SSE event name of this frame; its data is a event_delta payload. Incremental fragment of the event being produced. / Always ping. SSE event name of this frame; its data is a ping payload. Keep-alive frame; carries no data. / Always error. SSE event name of this frame; its data is a error payload. A stream error. |
| data | object | Decoded JSON payload of this frame; its shape is selected by the event name. / Praxis extension (goal mode, own face only): the session's goal was set, moved to another status, accounted usage or was cleared. goal is the goal after the change, previous_goal the one before; each is null when there was none. / Praxis extension (goal mode, own face only): one completion check of the goal. A started event opens it; completed, failed_closed or cancelled closes it. Events of one check share verification_id. / Praxis extension (own face only): a worker session reached a boundary and surfaced in this session. It names the worker, how its span ended and where its experience is filed, never the experience's own content. / Praxis extension (own face only): the idle pass woke this session about one open intention. It names the intention and why it was picked, never the intention's own text. / Praxis extension (#2371, own face only): the apps/api door held an outward or irreversible operation for the person. The interface builds its confirmation card from these facts and their deadline. / Praxis extension (#2371, own face only): the person answered a held operation, or its deadline passed. / Praxis extension (#4345, ADR-199 四 分支 A, own face only): a pinned session is running a configuration revision its agent has since left. Two identifiers and nothing else: it says which configuration ran, never what it said. / Praxis extension (#4345, ADR-199 四 分支 C, own face only): a platform input (a prompt section, the component catalog, the tool descriptions) moved without any configuration version moving. It names the inputs and their Revs, never the text behind them. / Praxis extension (own face only, only when the own face asks for observability): the session's machine escalated to the heavy tier, came back, or reported its status. / Praxis extension (ADR-140 / #1989, own face only, only when the own face asks for observability): a file, canvas or media asset the agent delivered was recorded as an artifact of the session. / Retired imagine tool (ADR-094 §4, own face only): one image request and how it ended. Nothing emits it now; sessions that recorded it still replay it through history, catch-up and the stream. / Retired imagine tool (ADR-094 §4, own face only): a picture was labelled in the session. Nothing emits it now; sessions that recorded it still replay it. / Retired imagine tool (ADR-094 §4, own face only): one imagine call planned a set of pictures. Nothing emits it now; sessions that recorded it still replay it. / Praxis extension (#4395, ADR-202, own face only): the main session attached a project. It names the project's id, name and folder, never its instructions. / Praxis extension (#4395, ADR-202, own face only): the main session's project attachment ended. / Praxis extension (#4737, own face only): a device session's local agent is starting. Only sessions that run on a person's own machine emit it. / Decoded JSON payload of this frame; its shape is selected by the event name. / Decoded JSON payload of this frame; its shape is selected by the event name. / Decoded JSON payload of this frame; its shape is selected by the event name. / Decoded JSON payload of this frame; its shape is selected by the event name. |
| data.id | string | Unique identifier for this event. / Text of the block. / Unique identifier for this event. / Text of the block. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Text of the block. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Text of the block. / Text of the block. / Text of the block. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Text of the block. / Unique identifier for this event. / Text of the block. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Unique identifier for this event. / Text of the block. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Text of the block. / Text of the block. / Text of the block. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. / Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer. |
| data.content | array<object> | System content blocks. Text-only. / Array of content blocks comprising the user message. / Array of text blocks comprising the agent response. / Content blocks of the event, in order. / The result content returned by the tool. / The result content returned by the tool. / The result content returned by the tool. / Message content blocks. / Message content blocks. / A platform sentence that explains the pause; never the notification text. / System content blocks. Text-only. / Array of content blocks comprising the user message. / Array of text blocks comprising the agent response. / Content blocks of the event, in order. / The result content returned by the tool. / The result content returned by the tool. / The result content returned by the tool. / Message content blocks. / Message content blocks. / A platform sentence that explains the pause; never the notification text. |
| data.type | string | Always system.message. A message produced by the platform rather than the user or the agent. / Always user.message. A message from the user to the agent, with content blocks. / Always user.interrupt. The user interrupted the running turn. / Always agent.message. A message from the agent, with text content blocks. / Always agent.thinking. The agent's thinking text for a step. / Always session.status_running. The session started running a turn. / Always session.status_rescheduled. The session will retry after a recoverable error. / Always session.status_idle. The session stopped running; stop_reason says why. / Always session.status_terminated. The session ended and accepts no more work. / Always agent.thread_context_compacting. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle. / Always agent.thread_context_compacted. The thread's context was compacted into a summary. / Always agent.thread_context_reset. Content was removed from the model's context after a content-safety refusal. / Always session.updated. The session's model, title, metadata, agent or budget changed. / Always session.error. The session hit an error. / Always session.usage. Cumulative usage of the session. / Always span.model_request_start. A model request started. / Always span.model_request_end. A model request ended, with its usage. / Always agent.tool_use. The agent called a tool. / Always agent.tool_result. The result of a tool call. / Always agent.mcp_tool_use. The agent called an MCP tool. / Always agent.mcp_tool_result. The result of an MCP tool call. / Always user.tool_confirmation. The user's decision to allow or deny a tool call that waits for approval. / Always agent.custom_tool_use. The agent called a custom tool defined by the client. / Always user.custom_tool_result. The user's result for a custom tool call. / Always session.thread_created. A child thread was started. / Always session.thread_status_running. A thread started running. / Always session.thread_status_idle. A thread stopped running; stop_reason says why. / Always session.thread_status_rescheduled. A thread will retry after a recoverable error. / Always session.thread_status_terminated. A thread ended. / Always agent.thread_message_sent. The agent sent a message to another thread. / Always agent.thread_message_received. The agent received a message from another thread. / Always user.withdraw. A queued user.message was withdrawn before it ran. / Always user.steer. Receipt that a queued user.message was injected into the running turn. / Always system.notification. Background work woke the session with a notification. / Always system.notification_suppressed. Pending background notifications started no run because the session hit its wake quota; reason says which. / Always system.notification_recorded. Pending background notifications were recorded without a run because the agent has no model. / Always session.forked. The session was created by forking another session. / Always session.goal_changed. / Always session.goal_verification. / Always cognition.surfaced. A worker session reached a boundary and surfaced in this session. / Always cognition.intention_woken. The idle pass woke the session about one open intention. / Always agent.operation_approval_requested. The door held an outward or irreversible operation for the person to approve. / Always agent.operation_approval_decided. A held operation was approved, refused, or expired unanswered. / Always session.prompt_configuration_mismatch. A pinned session runs a configuration revision its agent has since left. / Always session.prompt_rev_changed. A platform input (a prompt section, the catalog, the tool descriptions) moved without a version moving. / Always session.computer_tier. The session's machine escalated, came back, or reported its tier status. / Always agent.artifact_delivered. A file, canvas or media asset the agent delivered was recorded as an artifact. / Always agent.image_generation. Retired imagine tool: one image request and how it ended. Old sessions still replay it. / Always session.image_labeled. Retired imagine tool: a picture was labelled in the session. Old sessions still replay it. / Always session.image_set_planned. Retired imagine tool: one call planned a set of pictures. Old sessions still replay it. / Always session.project_attached. The main session attached a project; it names the project, never its instructions. / Always session.project_detached. The main session's project attachment ended. / Always session.status_preparing. A device session's local agent is starting; stage says how far it got. / Always event_start. Preview that an event of the requested delta types has started. / Always event_delta. Incremental fragment of the event being produced. / Always ping. Keep-alive frame; carries no data. / Always error. A stream error. / Always system.message. A message produced by the platform rather than the user or the agent. / Always user.message. A message from the user to the agent, with content blocks. / Always user.interrupt. The user interrupted the running turn. / Always agent.message. A message from the agent, with text content blocks. / Always agent.thinking. The agent's thinking text for a step. / Always session.status_running. The session started running a turn. / Always session.status_rescheduled. The session will retry after a recoverable error. / Always session.status_idle. The session stopped running; stop_reason says why. / Always session.status_terminated. The session ended and accepts no more work. / Always agent.thread_context_compacting. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle. / Always agent.thread_context_compacted. The thread's context was compacted into a summary. / Always agent.thread_context_reset. Content was removed from the model's context after a content-safety refusal. / Always session.updated. The session's model, title, metadata, agent or budget changed. / Always session.error. The session hit an error. / Always session.usage. Cumulative usage of the session. / Always span.model_request_start. A model request started. / Always span.model_request_end. A model request ended, with its usage. / Always agent.tool_use. The agent called a tool. / Always agent.tool_result. The result of a tool call. / Always agent.mcp_tool_use. The agent called an MCP tool. / Always agent.mcp_tool_result. The result of an MCP tool call. / Always user.tool_confirmation. The user's decision to allow or deny a tool call that waits for approval. / Always agent.custom_tool_use. The agent called a custom tool defined by the client. / Always user.custom_tool_result. The user's result for a custom tool call. / Always session.thread_created. A child thread was started. / Always session.thread_status_running. A thread started running. / Always session.thread_status_idle. A thread stopped running; stop_reason says why. / Always session.thread_status_rescheduled. A thread will retry after a recoverable error. / Always session.thread_status_terminated. A thread ended. / Always agent.thread_message_sent. The agent sent a message to another thread. / Always agent.thread_message_received. The agent received a message from another thread. / Always user.withdraw. A queued user.message was withdrawn before it ran. / Always user.steer. Receipt that a queued user.message was injected into the running turn. / Always system.notification. Background work woke the session with a notification. / Always system.notification_suppressed. Pending background notifications started no run because the session hit its wake quota; reason says which. / Always system.notification_recorded. Pending background notifications were recorded without a run because the agent has no model. / Always session.forked. The session was created by forking another session. / Always session.goal_changed. / Always session.goal_verification. / Always cognition.surfaced. A worker session reached a boundary and surfaced in this session. / Always cognition.intention_woken. The idle pass woke the session about one open intention. / Always agent.operation_approval_requested. The door held an outward or irreversible operation for the person to approve. / Always agent.operation_approval_decided. A held operation was approved, refused, or expired unanswered. / Always session.prompt_configuration_mismatch. A pinned session runs a configuration revision its agent has since left. / Always session.prompt_rev_changed. A platform input (a prompt section, the catalog, the tool descriptions) moved without a version moving. / Always session.computer_tier. The session's machine escalated, came back, or reported its tier status. / Always agent.artifact_delivered. A file, canvas or media asset the agent delivered was recorded as an artifact. / Always agent.image_generation. Retired imagine tool: one image request and how it ended. Old sessions still replay it. / Always session.image_labeled. Retired imagine tool: a picture was labelled in the session. Old sessions still replay it. / Always session.image_set_planned. Retired imagine tool: one call planned a set of pictures. Old sessions still replay it. / Always session.project_attached. The main session attached a project; it names the project, never its instructions. / Always session.project_detached. The main session's project attachment ended. / Always session.status_preparing. A device session's local agent is starting; stage says how far it got. / Always event_start. Preview that an event of the requested delta types has started. / Always event_delta. Incremental fragment of the event being produced. / Always ping. Keep-alive frame; carries no data. / Always error. A stream error. |
| data.processed_at | null | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | null | string | string | null | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | null | string | null | string | null | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | null | string | string | null | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | A timestamp in RFC 3339 format / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / A timestamp in RFC 3339 format / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / When the event was recorded, RFC 3339. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / A timestamp in RFC 3339 format / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / A timestamp in RFC 3339 format / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / When the event was recorded, RFC 3339. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. / RFC 3339 time at which the server processed the event; null while a queued input has not started running. |
| data.praxis_context | object | Untrusted page context for this user message only. Resend on each turn when needed; never added to system instructions. The complete JSON value must be at most 4096 UTF-8 bytes; invalid values return 400 INVALID_PARAMS. Empty items are treated as absent. Available only on /agent/v1. |
| data.message_id | string | UI transcript message ID. Use the last assistant message in a successfully completed turn as the fork target. / UI transcript message ID shared with this assistant's message parts. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / UI transcript message ID. Use the last assistant message in a successfully completed turn as the fork target. / UI transcript message ID. Use the last assistant message in a successfully completed turn as the fork target. / UI transcript message ID shared with this assistant's message parts. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here. |
| data.session_thread_id | null | string | string | string | null | string | null | string | null | string | null | string | null | string | string | string | string | string | string | string | string | null | string | string | string | string | null | string | null | string | null | string | null | string | null | string | null | null | string | string | string | null | string | null | string | null | string | null | string | null | string | string | string | string | string | string | string | string | null | string | string | string | string | null | string | null | string | null | string | null | string | null | string | null | If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). If present, interrupts only the named thread. / Text of the block. / Text of the block. / When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching user.tool_confirmation or user.tool_result by tool_use_id, so clients do not send it back. / When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching user.tool_confirmation by tool_use_id, so clients do not send it back. / Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread. / When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching user.custom_tool_result by custom_tool_use_id, so clients do not send it back. / Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread. / Public sthr_ ID of the newly created thread. / Public sthr_ ID of the thread that started running. / Public sthr_ ID of the thread that went idle. / Public sthr_ ID of the thread that is retrying. / Public sthr_ ID of the thread that terminated. / Text of the block. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Text of the block. / Text of the block. / Text of the block. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). If present, interrupts only the named thread. / Text of the block. / Text of the block. / When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching user.tool_confirmation or user.tool_result by tool_use_id, so clients do not send it back. / When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching user.tool_confirmation by tool_use_id, so clients do not send it back. / Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread. / When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching user.custom_tool_result by custom_tool_use_id, so clients do not send it back. / Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread. / Public sthr_ ID of the newly created thread. / Public sthr_ ID of the thread that started running. / Public sthr_ ID of the thread that went idle. / Public sthr_ ID of the thread that is retrying. / Public sthr_ ID of the thread that terminated. / Text of the block. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Text of the block. / Text of the block. / Text of the block. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. / Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here. |
| data.run_id | string | null | Run that produced this event; null when no run identity was recorded. |
| data.stop_reason | object | Why the session stopped running, with the variant data needed to continue. |
| data.compaction_id | string | Identifier of the manual operation or automatic compaction record that has started. |
| data.trigger | string | Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle. |
| data.removed | array<object> | Content removed from the model's context by this reset. |
| data.category | string | Text of the block. |
| data.stopped | boolean | True when the run was stopped instead of retried after the reset. |
| data.agent | null | object | Resolved agent definition for a session. Snapshot of the agent at session creation time. |
| data.budget | null | object | A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches max_list_cost. |
| data.metadata | object | The session's full metadata bag after the update. Present when the update set non-empty metadata; absent when metadata was unchanged or cleared to empty. |
| data.title | null | string | string | string | null | string | string | string | The session's new title. Present only when the update changed it. / Human-readable tool name from MCP 2025-06-18 Tool.title, falling back to annotations.title. Trimmed and truncated to 200 characters; omitted when blank or absent. Present only for model-initiated calls on /agent/v1; use name when absent. / Title given to the set, when the call named one. / The session's new title. Present only when the update changed it. / Human-readable tool name from MCP 2025-06-18 Tool.title, falling back to annotations.title. Trimmed and truncated to 200 characters; omitted when blank or absent. Present only for model-initiated calls on /agent/v1; use name when absent. / Title given to the set, when the call named one. |
| data.permission_mode | string | null | string | string | null | string | The new native session permission mode; null restores configured tool policies. / With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops. / The new native session permission mode; null restores configured tool policies. / With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops. |
| data.previous_permission_mode | string | null | The permission mode before this change, or null when none was selected. |
| data.permission_mode_version | integer | Monotone permission-mode version, incremented once per mode update. |
| data.model | object | string | object | string | Praxis extension: the changed session model, present only on /agent/v1 session.updated events. Model-only updates are omitted on /anthropic. / Model that drew the picture; absent when none was chosen. / Praxis extension: the changed session model, present only on /agent/v1 session.updated events. Model-only updates are omitted on /anthropic. / Model that drew the picture; absent when none was chosen. |
| data.error | object | Description of the error and what the client should do next. / Error detail. / Description of the error and what the client should do next. / Error detail. |
| data.praxis | object | Praxis diagnostic details alongside the SDK error object. |
| data.usage | object | Point-in-time snapshot of a session's cumulative usage. |
| data.is_error | null | boolean | Whether the model request resulted in an error. / Whether the tool execution resulted in an error. / Whether the tool execution resulted in an error. / Whether the tool execution resulted in an error. / Whether the model request resulted in an error. / Whether the tool execution resulted in an error. / Whether the tool execution resulted in an error. / Whether the tool execution resulted in an error. |
| data.model_request_start_id | string | The id of the corresponding span.model_request_start event. |
| data.model_usage | object | Token usage for a single model request. |
| data.input | object | Input parameters for the tool call. |
| data.name | string | Name of the agent tool being used. / Name of the MCP tool being used. / Name of the custom tool being called. / Name the worker session was opened under, as the session list shows it. / Name of the agent tool being used. / Name of the MCP tool being used. / Name of the custom tool being called. / Name the worker session was opened under, as the session list shows it. |
| data.evaluated_permission | string | AgentEvaluatedPermission enum |
| data.evaluation | object | Names the resolved permission_policy that produced evaluated_permission, and under auto carries the judgement. Open union: clients must tolerate unknown variants. |
| data.permission_suggestions | array<object> | On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval. |
| data.full_access_available | boolean | True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access. |
| data.user_once | boolean | When present, this dangerous shell call requires approval for this execution only; offer allow once or deny. |
| data.guarded_rule | string | Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches. |
| data.tool_use_id | string | The id of the agent.tool_use event this result corresponds to. / The id of the agent.tool_use or agent.mcp_tool_use event this result corresponds to, which can be found in the last session.status_idle event's stop_reason.event_ids field. / The imagine tool call this report belongs to. / Imagine call that produced the label, when one did. / Imagine call that planned the set. / The id of the agent.tool_use event this result corresponds to. / The id of the agent.tool_use or agent.mcp_tool_use event this result corresponds to, which can be found in the last session.status_idle event's stop_reason.event_ids field. / The imagine tool call this report belongs to. / Imagine call that produced the label, when one did. / Imagine call that planned the set. |
| data.mcp_server_name | string | Name of the MCP server providing the tool. |
| data._meta | object | Praxis extension (MCP Apps, SEP-1865): the ui and openai/ui keys of the MCP tool definition's _meta, verbatim; other _meta keys are not exposed. When ui.resourceUri is a ui:// URI, the tool has an interactive view: a client that implements MCP Apps can fetch that resource from the MCP server and render it for this call. Absent when the tool declares neither key. Clients that do not render MCP Apps ignore it. / Praxis extension (MCP Apps, SEP-1865): the MCP CallToolResult _meta, verbatim. Views use it for data that should not reach the model; absent when the tool returned none. / Praxis extension (MCP Apps, SEP-1865): the ui and openai/ui keys of the MCP tool definition's _meta, verbatim; other _meta keys are not exposed. When ui.resourceUri is a ui:// URI, the tool has an interactive view: a client that implements MCP Apps can fetch that resource from the MCP server and render it for this call. Absent when the tool declares neither key. Clients that do not render MCP Apps ignore it. / Praxis extension (MCP Apps, SEP-1865): the MCP CallToolResult _meta, verbatim. Views use it for data that should not reach the model; absent when the tool returned none. |
| data.source | string | Praxis extension (MCP Apps, SEP-1865): app when the call was made by an MCP Apps view, codemode when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls. / What caused the change. / Praxis extension (MCP Apps, SEP-1865): app when the call was made by an MCP Apps view, codemode when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls. / Praxis extension (MCP Apps, SEP-1865): app when the call was made by an MCP Apps view, codemode when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls. / What caused the change. |
| data.parent_tool_use_id | string | Praxis extension (MCP Apps, SEP-1865): present when source is codemode; the id of the codemode tool use whose program made this call. Absent otherwise. |
| data.input_titles | object | Display labels keyed by top-level input property name, from MCP inputSchema.properties titles. Only nonempty string titles are included, trimmed and truncated to 100 characters each; omitted when none. Present only for model-initiated calls on /agent/v1; use the input key when a label is absent. |
| data.mcp_tool_use_id | string | The id of the agent.mcp_tool_use event this result corresponds to. |
| data.structured_content | any | Praxis extension (MCP Apps, SEP-1865): the MCP CallToolResult structuredContent, verbatim JSON. MCP Apps views read it as the data to render; absent when the tool returned none. |
| data.result | string | object | string | object | UserToolConfirmationResult enum / What the worker handed over at this boundary: its last message, the addresses it named, the files it delivered and any operation the platform still holds. Absent when it handed nothing over. / UserToolConfirmationResult enum / What the worker handed over at this boundary: its last message, the addresses it named, the files it delivered and any operation the platform still holds. Absent when it handed nothing over. |
| data.deny_message | string | Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation. Omit when no feedback is needed. |
| data.custom_tool_use_id | string | The id of the agent.custom_tool_use event this result corresponds to, which can be found in the last session.status_idle event's stop_reason.event_ids field. |
| data.agent_name | string | Name of the callable agent the thread runs. / Name of the agent the thread runs. / Name of the agent the thread runs. / Name of the agent the thread runs. / Name of the agent the thread runs. / Name of the callable agent the thread runs. / Name of the agent the thread runs. / Name of the agent the thread runs. / Name of the agent the thread runs. / Name of the agent the thread runs. |
| data.to_session_thread_id | string | Public sthr_ ID of the thread the message was sent to. |
| data.to_agent_name | null | string | Name of the callable agent this message was sent to. Absent when sent to the primary agent. |
| data.from_session_thread_id | string | Public sthr_ ID of the thread that sent the message. |
| data.from_agent_name | null | string | Name of the callable agent this message came from. Absent when received from the primary agent. |
| data.event_id | string | Text of the block. / Id of the event this event refers to. / Text of the block. / Text of the block. / Id of the event this event refers to. / Text of the block. |
| data.sources | array<object> | Background work that woke the session with this notification. |
| data.reason | string | The wake quota that held the batch. / Why this intention was picked. / Present only when the project left the registry rather than the session detaching it. / The wake quota that held the batch. / Why this intention was picked. / Present only when the project left the registry rather than the session detaching it. |
| data.system_input_ids | array<string> | The pending system inputs that were dropped without a run. / The pending system inputs that were recorded without a run. / The pending system inputs that were dropped without a run. / The pending system inputs that were recorded without a run. |
| data.source_kinds | array<string> | The distinct source kinds of those inputs, such as background_task or monitor. / The distinct source kinds of those inputs. / The distinct source kinds of those inputs, such as background_task or monitor. / The distinct source kinds of those inputs. |
| data.forked_from_session_id | string | Id of the parent session this session was forked from. |
| data.forked_from_message_id | string | message_id of the agent message in the parent session up to which the conversation was copied. |
| data.action | string | What changed in the goal. / Which step of the tier move this reports. / What changed in the goal. / Which step of the tier move this reports. |
| data.goal | object | null | The goal as the change left it, or null when the session has no goal. |
| data.previous_goal | object | null | The goal before the change, or null when there was none. |
| data.status | string | object | string | string | string | object | string | Where the check stands. Read verification.passed on the closing event to know whether the goal counts as done. / How the held request ended. / The machine's own status when the controller reported one, with the progress counters the console shows while a move runs. / Step of the picture at the time it was recorded: queued, drawing, completed, failed or cancelled. / Where the check stands. Read verification.passed on the closing event to know whether the goal counts as done. / How the held request ended. / The machine's own status when the controller reported one, with the progress counters the console shows while a move runs. / Step of the picture at the time it was recorded: queued, drawing, completed, failed or cancelled. |
| data.goal_id | string | The goal this check belongs to. |
| data.goal_iteration | integer | Which check of this goal, matching iteration on the goal. |
| data.verification_id | string | Identifier shared by every event of one check. |
| data.anchor_message_id | string | null | The assistant message the check follows, or null. |
| data.verification | object | The verdict; absent on started. |
| data.worker_session_id | string | Public sesn_ id of the worker session that reached the boundary; the internal ags_ id never appears here. / Public sesn_ id of the worker session whose operation was held; absent when this session made the call itself. / Public sesn_ id of the worker session that reached the boundary; the internal ags_ id never appears here. / Public sesn_ id of the worker session whose operation was held; absent when this session made the call itself. |
| data.state | string | How the worker's span ended. |
| data.experience_id | string | Engram that filed the worker's experience, when a recap was written; absent when there is no node to name. |
| data.node_id | string | Engram of the intention the wake was about. |
| data.approval_id | string | Id of the held request; user.tool_confirmation answers it and agent.operation_approval_decided settles it. / Id of the held request this settles, matching agent.operation_approval_requested. / Id of the held request; user.tool_confirmation answers it and agent.operation_approval_decided settles it. / Id of the held request this settles, matching agent.operation_approval_requested. |
| data.operation_id | string | Operation the agent called, as the platform names it in its API reference. |
| data.effect | string | Why the call was held. |
| data.method | string | HTTP method of the request that was held. |
| data.path | string | Path of the request that was held, as the door canonicalized it. |
| data.summary | string | One line naming the operation and its address, for the card's title. |
| data.expires_at | string | When the request stops being answerable, RFC 3339; a request nobody answered within 24 hours settles as expired. |
| data.worker_name | string | Name of that worker session, for the card to say which desk is asking; absent when this session made the call itself. |
| data.pinned_revision_id | string | Agent configuration revision this session pinned when it started (agr_…). |
| data.current_revision_id | string | Configuration revision the agent publishes now (agr_…); it differs from the pinned one, which is what makes this event. |
| data.config_revision_id | string | Configuration revision the session ran this turn (agr_…); it does not move when only platform inputs move. |
| data.changed | array<object> | The platform inputs that moved, sorted by name; empty never happens, because no move means no event. |
| data.tier | string | Machine the session is on for this report. |
| data.duration_ms | integer | How long the reported step took, in milliseconds. |
| data.error_code | string | Why an escalation failed; present only on escalate_failed. |
| data.artifact | object | The artifact as the session recorded it: one file of the outputs directory, or one canvas or media asset the reply pointed at. |
| data.index | integer | Which picture of the call this is, from 0. |
| data.total | integer | How many pictures the call asked for. |
| data.mode | string | How the picture was produced: generate, edit or set. |
| data.aspect | string | Aspect ratio requested for the picture, for example 1:1. |
| data.prompt | string | Prompt the model passed for this picture. |
| data.file_id | string | File of the finished picture; absent until it completed. / File the label points at. / File of the finished picture; absent until it completed. / File the label points at. |
| data.label | string | Conversation label the picture was given, for example 图3. |
| data.width | integer | Width of the produced picture in pixels. |
| data.height | integer | Height of the produced picture in pixels. |
| data.revised_prompt | string | Prompt the provider rewrote before drawing, when it rewrote one. |
| data.source_labels | array<string> | Pictures this one was made from, by their conversation labels. |
| data.caption | string | Caption the reply gave the picture. |
| data.slot | integer | null | Slot of the picture inside a planned set; null when it was not part of one. |
| data.replaces | string | Label of the picture this version replaces. |
| data.version | integer | Version of the labelled picture: one more per replacement. |
| data.failure | object | Why the picture failed; present only when it failed. |
| data.origin | string | Where the picture came from. |
| data.filename | string | Name of the file the label points at. |
| data.replaced_file_id | string | File this label pointed at before the replacement, when it was replaced. |
| data.items | array<any> | The pictures the set planned, in the order the call listed them. |
| data.project | object | The project the main session is now attached to. |
| data.project_id | string | Id of the project the session was attached to; it is the same id the attach event carried. |
| data.stage | string | How far the start got. |
| data.event | object | Event name or event payload. |
| data.delta | object | Incremental fragment of the event being produced. |