Anthropic · Schema
BetaManagedAgentsStreamSessionThreadEvents
Server-sent event in a single thread's stream.
LLMAnthropicArtificial IntelligenceClaudeFoundation ModelsMachine LearningMCPAgents
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/anthropic/main/json-schema/anthropic-beta-managed-agents-stream-session-thread-events-schema.json",
"title": "BetaManagedAgentsStreamSessionThreadEvents",
"description": "Server-sent event in a single thread's stream.",
"x-generated": "2026-09-23",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/anthropic-sessions-api-openapi.yml#/components/schemas/BetaManagedAgentsStreamSessionThreadEvents",
"type": "object",
"oneOf": [
{
"$ref": "#/$defs/BetaManagedAgentsUserMessageEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsUserInterruptEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsUserToolConfirmationEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsUserCustomToolResultEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentCustomToolUseEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentMessageEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentThinkingEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentMcpToolUseEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentMcpToolResultEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentToolUseEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentToolResultEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentThreadMessageReceivedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentThreadMessageSentEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsAgentThreadContextCompactedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionErrorEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionStatusRescheduledEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionStatusRunningEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionStatusIdleEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionStatusTerminatedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionThreadCreatedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSpanOutcomeEvaluationStartEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSpanOutcomeEvaluationEndEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSpanModelRequestStartEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSpanModelRequestEndEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsUserDefineOutcomeEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionDeletedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionThreadStatusRunningEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionThreadStatusIdleEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionThreadStatusTerminatedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsUserToolResultEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionThreadStatusRescheduledEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionUpdatedEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsEventStartEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsEventDeltaEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSystemMessageEvent"
},
{
"$ref": "#/$defs/BetaManagedAgentsSessionUsageEvent"
}
],
"$defs": {
"BetaCurrency": {
"type": "string",
"enum": [
"USD"
]
},
"BetaManagedAgentsAdvisor": {
"description": "Platform advisor roster entry: a model the session's primary thread may consult mid-turn.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"model"
],
"properties": {
"type": {
"type": "string",
"enum": [
"advisor"
]
},
"model": {
"description": "The advisor model id.",
"type": "string"
}
}
},
"BetaManagedAgentsAgentCustomToolUseEvent": {
"description": "Event emitted when the agent calls a custom tool. The session goes idle until the client sends a `user.custom_tool_result` event with the result.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"name",
"input",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.custom_tool_use"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"name": {
"description": "Name of the custom tool being called.",
"type": "string"
},
"input": {
"description": "Input parameters for the tool call.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsStruct"
}
]
},
"processed_at": {
"description": "Timestamp when this tool use was processed.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
},
"session_thread_id": {
"description": "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. Echo this on a `user.custom_tool_result` event to route the result back.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"x-anthropic-beta-required": [
"managed-agents-2026-04-01"
]
}
}
},
"BetaManagedAgentsAgentEvaluatedPermission": {
"type": "string",
"description": "AgentEvaluatedPermission enum",
"enum": [
"allow",
"ask",
"deny"
]
},
"BetaManagedAgentsAgentMcpToolResultEvent": {
"description": "Event representing the result of an MCP tool execution.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"mcp_tool_use_id",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.mcp_tool_result"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"mcp_tool_use_id": {
"description": "The id of the `agent.mcp_tool_use` event this result corresponds to.",
"type": "string"
},
"content": {
"description": "The result content returned by the tool.",
"type": "array",
"items": {
"$ref": "#/$defs/BetaManagedAgentsToolResultContentBlock"
}
},
"is_error": {
"description": "Whether the tool execution resulted in an error.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"processed_at": {
"description": "Timestamp when this event was processed.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
}
}
},
"BetaManagedAgentsAgentMcpToolUseEvent": {
"description": "Event emitted when the agent invokes a tool provided by an MCP server.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"name",
"mcp_server_name",
"input",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.mcp_tool_use"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"name": {
"description": "Name of the MCP tool being used.",
"type": "string"
},
"mcp_server_name": {
"description": "Name of the MCP server providing the tool.",
"type": "string"
},
"input": {
"description": "Input parameters for the tool call.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsStruct"
}
]
},
"processed_at": {
"description": "Timestamp when this event was processed.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
},
"evaluated_permission": {
"description": "The evaluated permission policy for this tool invocation.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsAgentEvaluatedPermission"
}
]
},
"session_thread_id": {
"description": "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. Echo this on a `user.tool_confirmation` event to route the approval back.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"x-anthropic-beta-required": [
"managed-agents-2026-04-01"
]
}
}
},
"BetaManagedAgentsAgentMessageContentBlock": {
"description": "Content block in an agent message.",
"type": "object",
"oneOf": [
{
"$ref": "#/$defs/BetaManagedAgentsTextBlock"
},
{
"$ref": "#/$defs/BetaManagedAgentsRedactedBlock"
}
]
},
"BetaManagedAgentsAgentMessageEvent": {
"description": "An agent response event in the session conversation.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"content",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.message"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"content": {
"description": "Array of text blocks comprising the agent response.",
"type": "array",
"items": {
"$ref": "#/$defs/BetaManagedAgentsAgentMessageContentBlock"
}
},
"processed_at": {
"description": "Timestamp when this response was generated.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
}
}
},
"BetaManagedAgentsAgentThinkingEvent": {
"description": "Indicates the agent is making forward progress via extended thinking. A progress signal, not a content carrier.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.thinking"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"processed_at": {
"description": "Timestamp when this thinking was produced.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
}
}
},
"BetaManagedAgentsAgentThreadContextCompactedEvent": {
"description": "Indicates that context compaction (summarization) occurred during the session.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.thread_context_compacted"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"processed_at": {
"description": "Timestamp when compaction was processed.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
}
}
},
"BetaManagedAgentsAgentThreadMessageReceivedEvent": {
"description": "Delivery event written to the target thread's input stream when an agent-to-agent message arrives.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"processed_at",
"content",
"from_session_thread_id"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.thread_message_received"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"processed_at": {
"description": "Timestamp when the message was received.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
},
"from_agent_name": {
"description": "Name of the callable agent this message came from. Absent when received from the primary agent.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"content": {
"description": "Message content blocks.",
"type": "array",
"items": {
"$ref": "#/$defs/BetaManagedAgentsUserContentBlock"
}
},
"from_session_thread_id": {
"description": "Public `sthr_` ID of the thread that sent the message.",
"type": "string",
"x-anthropic-beta-required": [
"managed-agents-2026-04-01"
]
}
}
},
"BetaManagedAgentsAgentThreadMessageSentEvent": {
"description": "Observability event emitted to the sender's output stream when an agent-to-agent message is sent.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"processed_at",
"content",
"to_session_thread_id"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.thread_message_sent"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"processed_at": {
"description": "Timestamp when the message was sent.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
},
"to_agent_name": {
"description": "Name of the callable agent this message was sent to. Absent when sent to the primary agent.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"content": {
"description": "Message content blocks.",
"type": "array",
"items": {
"$ref": "#/$defs/BetaManagedAgentsUserContentBlock"
}
},
"to_session_thread_id": {
"description": "Public `sthr_` ID of the thread the message was sent to.",
"type": "string",
"x-anthropic-beta-required": [
"managed-agents-2026-04-01"
]
}
}
},
"BetaManagedAgentsAgentTool": {
"description": "Union type for tool configurations returned in API responses.",
"type": "object",
"oneOf": [
{
"$ref": "#/$defs/BetaManagedAgentsAgentToolset20260401"
},
{
"$ref": "#/$defs/BetaManagedAgentsMCPToolset"
},
{
"$ref": "#/$defs/BetaManagedAgentsCustomTool"
}
]
},
"BetaManagedAgentsAgentToolConfigUnion": {
"description": "Configuration for a specific agent tool.",
"type": "object",
"oneOf": [
{
"$ref": "#/$defs/BetaManagedAgentsBashToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsEditToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsReadToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsWriteToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsGlobToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsGrepToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsWebFetchToolConfig"
},
{
"$ref": "#/$defs/BetaManagedAgentsWebSearchToolConfig"
}
]
},
"BetaManagedAgentsAgentToolResultEvent": {
"description": "Event representing the result of an agent tool execution.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"tool_use_id",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.tool_result"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"tool_use_id": {
"description": "The id of the `agent.tool_use` event this result corresponds to.",
"type": "string"
},
"content": {
"description": "The result content returned by the tool.",
"type": "array",
"items": {
"$ref": "#/$defs/BetaManagedAgentsToolResultContentBlock"
}
},
"is_error": {
"description": "Whether the tool execution resulted in an error.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"processed_at": {
"description": "Timestamp when this event was processed.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
}
}
},
"BetaManagedAgentsAgentToolUseEvent": {
"description": "Event emitted when the agent invokes a built-in agent tool.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"id",
"name",
"input",
"processed_at"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent.tool_use"
]
},
"id": {
"description": "Unique identifier for this event.",
"type": "string"
},
"name": {
"description": "Name of the agent tool being used.",
"type": "string"
},
"input": {
"description": "Input parameters for the tool call.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsStruct"
}
]
},
"processed_at": {
"description": "Timestamp when this event was processed.",
"allOf": [
{
"$ref": "#/$defs/BetaTimestamp"
}
]
},
"evaluated_permission": {
"description": "The evaluated permission policy for this tool invocation.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsAgentEvaluatedPermission"
}
]
},
"session_thread_id": {
"description": "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. Echo this on a `user.tool_confirmation` event to route the approval back.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"x-anthropic-beta-required": [
"managed-agents-2026-04-01"
]
}
}
},
"BetaManagedAgentsAgentToolset20260401": {
"type": "object",
"additionalProperties": false,
"required": [
"type",
"default_config",
"configs"
],
"properties": {
"type": {
"type": "string",
"enum": [
"agent_toolset_20260401"
]
},
"default_config": {
"$ref": "#/$defs/BetaManagedAgentsAgentToolsetDefaultConfig"
},
"configs": {
"type": "array",
"items": {
"$ref": "#/$defs/BetaManagedAgentsAgentToolConfigUnion"
}
}
}
},
"BetaManagedAgentsAgentToolsetDefaultConfig": {
"description": "Resolved default configuration for agent tools.",
"type": "object",
"additionalProperties": false,
"required": [
"enabled",
"permission_policy"
],
"properties": {
"enabled": {
"type": "boolean"
},
"permission_policy": {
"$ref": "#/$defs/BetaManagedAgentsPermissionPolicy"
}
}
},
"BetaManagedAgentsAlwaysAllowPolicy": {
"description": "Tool calls are automatically approved without user confirmation.",
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"always_allow"
]
}
}
},
"BetaManagedAgentsAlwaysAskPolicy": {
"description": "Tool calls require user confirmation before execution.",
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"always_ask"
]
}
}
},
"BetaManagedAgentsAnthropicSkill": {
"description": "A resolved Anthropic-managed skill.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"skill_id",
"version"
],
"properties": {
"type": {
"type": "string",
"enum": [
"anthropic"
]
},
"skill_id": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"BetaManagedAgentsBase64DocumentSource": {
"description": "Base64-encoded document data.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"media_type",
"data"
],
"properties": {
"type": {
"type": "string",
"enum": [
"base64"
]
},
"media_type": {
"description": "MIME type of the document (e.g., \"application/pdf\").",
"type": "string",
"minLength": 1
},
"data": {
"description": "Base64-encoded document data.",
"type": "string",
"minLength": 1
}
}
},
"BetaManagedAgentsBase64ImageSource": {
"description": "Base64-encoded image data.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"media_type",
"data"
],
"properties": {
"type": {
"type": "string",
"enum": [
"base64"
]
},
"media_type": {
"description": "MIME type of the image (e.g., \"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\").",
"type": "string",
"minLength": 1
},
"data": {
"description": "Base64-encoded image data.",
"type": "string",
"minLength": 1
}
}
},
"BetaManagedAgentsBashToolConfig": {
"description": "Configuration for the bash tool.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"name",
"enabled",
"permission_policy"
],
"properties": {
"type": {
"type": "string",
"const": "bash"
},
"name": {
"type": "string",
"const": "bash"
},
"enabled": {
"type": "boolean"
},
"permission_policy": {
"$ref": "#/$defs/BetaManagedAgentsPermissionPolicy"
}
}
},
"BetaManagedAgentsBillingError": {
"description": "The caller's organization or workspace cannot make model requests — out of credits or spend limit reached. Retrying with the same credentials will not succeed; the caller must resolve the billing state.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"message",
"retry_status"
],
"properties": {
"type": {
"type": "string",
"enum": [
"billing_error"
]
},
"message": {
"description": "Human-readable error description.",
"type": "string"
},
"retry_status": {
"description": "What the client should do next.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsRetryStatus"
}
]
}
}
},
"BetaManagedAgentsBudget": {
"description": "An enforced spend ceiling on a session. Discriminated on `type`; `limit` is the only kind currently supported.",
"type": "object",
"oneOf": [
{
"$ref": "#/$defs/BetaManagedAgentsBudgetLimit"
}
]
},
"BetaManagedAgentsBudgetLimit": {
"description": "A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches `max_list_cost`.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"max_list_cost"
],
"properties": {
"type": {
"type": "string",
"enum": [
"limit"
]
},
"max_list_cost": {
"description": "Maximum list cost the session may accrue. List price is used regardless of any negotiated discount, so the cap fires at or before the actual charge.",
"allOf": [
{
"$ref": "#/$defs/BetaMonetaryAmount"
}
]
}
}
},
"BetaManagedAgentsCacheCreationUsage": {
"description": "Prompt-cache creation token usage broken down by cache lifetime.",
"type": "object",
"additionalProperties": false,
"properties": {
"ephemeral_1h_input_tokens": {
"description": "Tokens used to create 1-hour ephemeral cache entries.",
"type": "integer",
"format": "int32"
},
"ephemeral_5m_input_tokens": {
"description": "Tokens used to create 5-minute ephemeral cache entries.",
"type": "integer",
"format": "int32"
}
}
},
"BetaManagedAgentsCredentialHostUnreachableError": {
"description": "An `environment_variable` credential's `auth.networking.allowed_hosts` includes a host the environment's network policy does not permit.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"message",
"retry_status",
"vault_id",
"credential_id"
],
"properties": {
"type": {
"type": "string",
"enum": [
"credential_host_unreachable_error"
]
},
"message": {
"description": "Human-readable error description.",
"type": "string"
},
"retry_status": {
"description": "What the client should do next.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsRetryStatus"
}
]
},
"vault_id": {
"description": "ID of the vault containing the affected credential.",
"type": "string"
},
"credential_id": {
"description": "ID of the affected credential.",
"type": "string"
}
}
},
"BetaManagedAgentsCustomSkill": {
"description": "A resolved user-created custom skill.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"skill_id",
"version"
],
"properties": {
"type": {
"type": "string",
"enum": [
"custom"
]
},
"skill_id": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"BetaManagedAgentsCustomTool": {
"description": "A custom tool as returned in API responses.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"name",
"description",
"input_schema"
],
"properties": {
"type": {
"type": "string",
"enum": [
"custom"
]
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"input_schema": {
"$ref": "#/$defs/BetaManagedAgentsCustomToolInputSchema"
}
}
},
"BetaManagedAgentsCustomToolInputSchema": {
"additionalProperties": true,
"description": "JSON Schema for custom tool input parameters.",
"properties": {
"properties": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Properties",
"x-stainless-skip": [
"terraform"
]
},
"required": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Required"
},
"type": {
"const": "object",
"title": "Type",
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"BetaManagedAgentsDocumentBlock": {
"description": "Document content, either specified directly as base64 data, as text, or as a reference via a URL.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"source"
],
"properties": {
"type": {
"type": "string",
"enum": [
"document"
]
},
"source": {
"description": "The source of the document data.",
"allOf": [
{
"$ref": "#/$defs/BetaManagedAgentsDocumentSource"
}
]
},
"title": {
"description": "The title of the document.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"context": {
"description": "Additional context about the document for the model.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
},
"BetaManagedAgentsDocumentSource": {
"description": "Union type for document source variants.",
"type": "object",
"oneOf": [
{
"$ref": "#/$defs/BetaManagedAgentsBase64DocumentSource"
},
{
"$ref": "#/$defs/BetaManagedAgentsPlainTextDocumentSource"
},
{
"$ref": "#/$defs/BetaManagedAgentsURLDocumentSource"
},
{
"$ref": "#/$defs/BetaManagedAgentsFileDocumentSource"
}
]
},
"BetaManagedAgentsEditToolConfig": {
"description": "Configuration for the edit tool.",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"name",
"enabled",
"permi
# --- truncated at 32 KB (117 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/anthropic/refs/heads/main/json-schema/anthropic-beta-managed-agents-stream-session-thread-events-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/anthropic-beta-managed-agents-stream-session-thread-events"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.