List Session Thread Events
$ ant beta:sessions:threads:events listList Session Thread Events
Returns
Events for the thread, ordered by processed_at.
Events for the thread, ordered by processed_at.
content: array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsRedactedBlock { type }Array of content blocks comprising the user message.
Array of content blocks comprising the user message.
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 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.
content: optional array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsSearchResultBlock { citations, content, source, 2 more }The result content returned by the tool.
The result content returned by the tool.
content: array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsRedactedBlock { type }Array of text blocks comprising the agent response.
Array of text blocks comprising the agent response.
content: optional array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsSearchResultBlock { citations, content, source, 2 more }The result content returned by the tool.
The result content returned by the tool.
content: optional array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsSearchResultBlock { citations, content, source, 2 more }The result content returned by the tool.
The result content returned by the tool.
content: array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsRedactedBlock { type }Message content blocks.
Message content blocks.
content: array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsRedactedBlock { type }Message content blocks.
Message content blocks.
error: BetaManagedAgentsUnknownError { message, retry_status, type } or BetaManagedAgentsModelOverloadedError { message, retry_status, type } or BetaManagedAgentsModelRateLimitedError { message, retry_status, type } or 5 moreAn unknown or unexpected error occurred during session execution. A fallback variant; clients that don't recognize a new error code can match on retry_status and message alone.
An unknown or unexpected error occurred during session execution. A fallback variant; clients that don't recognize a new error code can match on retry_status and message alone.
stop_reason: BetaManagedAgentsSessionEndTurn { type } or BetaManagedAgentsSessionRequiresAction { event_ids, type } or BetaManagedAgentsSessionRetriesExhausted { type } or BetaManagedAgentsSessionBudgetReached { type }The agent completed its turn naturally and is ready for the next user message.
The agent completed its turn naturally and is ready for the next user message.
Emitted when an outcome evaluation cycle completes. Carries the verdict and aggregate token usage. A verdict of needs_revision means another evaluation cycle follows; satisfied, max_iterations_reached, failed, or interrupted are terminal — no further evaluation cycles follow.
Emitted when an outcome evaluation cycle completes. Carries the verdict and aggregate token usage. A verdict of needs_revision means another evaluation cycle follows; satisfied, max_iterations_reached, failed, or interrupted are terminal — no further evaluation cycles follow.
Human-readable explanation of the verdict. For needs_revision, describes which criteria failed and why.
Evaluation verdict. 'satisfied': criteria met, session goes idle. 'needs_revision': criteria not met, another revision cycle follows. 'max_iterations_reached': evaluation budget exhausted with criteria still unmet — one final acknowledgment turn follows before the session goes idle, but no further evaluation runs. 'failed': grader determined the rubric does not apply to the deliverables. 'interrupted': user sent an interrupt while evaluation was in progress.
beta_managed_agents_span_outcome_evaluation_ongoing_event: object{ id, iteration, outcome_id, 2 more }Periodic heartbeat emitted while an outcome evaluation cycle is in progress. Distinguishes 'evaluation is actively running' from 'evaluation is stuck' between the corresponding span.outcome_evaluation_start and span.outcome_evaluation_end events.
Periodic heartbeat emitted while an outcome evaluation cycle is in progress. Distinguishes 'evaluation is actively running' from 'evaluation is stuck' between the corresponding span.outcome_evaluation_start and span.outcome_evaluation_end events.
Server-generated outc_ ID for this outcome. Referenced by span.outcome_evaluation_* events and the session's outcome_evaluations list.
rubric: BetaManagedAgentsFileRubric { file_id, type } or BetaManagedAgentsTextRubric { content, type }Rubric for grading the quality of an outcome.
Rubric for grading the quality of an outcome.
stop_reason: BetaManagedAgentsSessionEndTurn { type } or BetaManagedAgentsSessionRequiresAction { event_ids, type } or BetaManagedAgentsSessionRetriesExhausted { type } or BetaManagedAgentsSessionBudgetReached { type }The agent completed its turn naturally and is ready for the next user message.
The agent completed its turn naturally and is ready for the next user message.
The id of the agent.tool_use event this result corresponds to, which can be found in the last session.status_idle event's stop_reason.event_ids field.
content: optional array of BetaManagedAgentsTextBlock { text, type } or BetaManagedAgentsImageBlock { source, type } or BetaManagedAgentsDocumentBlock { source, type, context, title } or BetaManagedAgentsSearchResultBlock { citations, content, source, 2 more }The result content returned by the tool.
The result content returned by the tool.
effort: optional BetaManagedAgentsEffortLow { type } or BetaManagedAgentsEffortMedium { type } or BetaManagedAgentsEffortHigh { type } or 2 moreHow hard Claude works on each turn. Sets output_config.effort on every Messages call the session makes.
How hard Claude works on each turn. Sets output_config.effort on every Messages call the session makes.
agents: array of BetaManagedAgentsSessionThreadAgent { id, description, mcp_servers, 7 more } or BetaManagedAgentsAdvisor { model, type }Full agent definitions the coordinator may spawn as session threads.
Full agent definitions the coordinator may spawn as session threads.
skills: array of BetaManagedAgentsAnthropicSkill { skill_id, type, version } or BetaManagedAgentsCustomSkill { skill_id, type, version }
tools: array of BetaManagedAgentsAgentToolset20260401 { configs, default_config, type } or BetaManagedAgentsMCPToolset { configs, default_config, mcp_server_name, type } or BetaManagedAgentsCustomTool { description, input_schema, name, type }
List Session Thread Events
ant beta:sessions:threads:events list \
--api-key my-anthropic-api-key \
--session-id sesn_011CZkZAtmR3yMPDzynEDxu7 \
--thread-id sthr_011CZkZVWa6oIjw0rgXZpnBt{
"data": [
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}
],
"next_page": "next_page"
}Returns Examples
{
"data": [
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}
],
"next_page": "next_page"
}