Claude Platform Docs

Агенты

Создать агента
BetaManagedAgentsAgent beta().agents().create(params, requestOptions = RequestOptions.none())
POST/v1/agents
Список агентов
AgentListPage beta().agents().list(params = AgentListParams.none(), requestOptions = RequestOptions.none())
GET/v1/agents
Получить агента
BetaManagedAgentsAgent beta().agents().retrieve(params = AgentRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/agents/{agent_id}
Обновить агента
BetaManagedAgentsAgent beta().agents().update(params = AgentUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/agents/{agent_id}
Архивировать агента
BetaManagedAgentsAgent beta().agents().archive(params = AgentArchiveParams.none(), requestOptions = RequestOptions.none())
POST/v1/agents/{agent_id}/archive
Models
class BetaManagedAgentsAdvisor { type; model; }

Platform advisor roster entry: a model the session's primary thread may consult mid-turn.

Type type
String model

The advisor model id.

class BetaManagedAgentsAgent { type; id; archivedAt; /* 13 more */ }

A Managed Agents agent.

class BetaManagedAgentsAgentReference { type; id; version; }

A resolved agent reference with a concrete version.

Type type
String id
long version
formatint32
class BetaManagedAgentsAgentToolConfig: union

Configuration for a specific agent tool.

class BetaManagedAgentsAgentToolConfigParams: union

Configuration override for a specific tool within a toolset.

class BetaManagedAgentsAgentToolsetDefaultConfig { enabled; permissionPolicy; }

Resolved default configuration for agent tools.

boolean enabled
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsAgentToolsetDefaultConfigParams { enabled; permissionPolicy; }

Default configuration for all tools in a toolset.

Optional<Boolean> enabled

Whether tools are enabled and available to Claude by default. Defaults to true if not specified.

Optional<PermissionPolicy> permissionPolicy

Default permission policy for tools. Controls whether tool calls are auto-approved or require confirmation.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsAgentToolset20260401 { type; configs; defaultConfig; }
class BetaManagedAgentsAgentToolset20260401BashInput { command; restart; timeoutMs; }

Input payload for the bash tool of the agent_toolset_20260401 toolset. All fields are optional; a normal invocation supplies command, while restart=true (with no command) reboots the runner-side bash session.

Optional<String> command

Shell command to execute. Omit only when restart is true.

Optional<Boolean> restart

When true, restart the persistent bash session instead of running a command. Subsequent calls without restart will run against the fresh session.

Optional<Long> timeoutMs

Per-call timeout in milliseconds. Defaults to the runner-wide tool timeout when omitted or zero.

minimum0
class BetaManagedAgentsAgentToolset20260401EditInput { filePath; newString; oldString; replaceAll; }

Input payload for the edit tool. Performs a string replacement in the named file; by default old_string must occur exactly once.

String filePath

Path of the file to edit.

String newString

Replacement text.

String oldString

Substring to find and replace.

Optional<Boolean> replaceAll

When true, replace every occurrence of old_string instead of requiring a unique match.

class BetaManagedAgentsAgentToolset20260401GlobInput { pattern; path; }

Input payload for the glob tool. Returns paths matching a doublestar glob pattern, newest first.

String pattern

Doublestar glob pattern (e.g. **/*.go). Absolute patterns are only permitted when the runner is configured to allow them.

Optional<String> path

Optional directory root to search under. Defaults to the runner's working directory.

class BetaManagedAgentsAgentToolset20260401GrepInput { pattern; path; }

Input payload for the grep tool. Searches file contents for a regular expression, returning matching lines.

String pattern

Regular expression to search for.

Optional<String> path

Optional directory root to search under. Defaults to the runner's working directory.

class BetaManagedAgentsAgentToolset20260401Params { type; configs; defaultConfig; }

Configuration for built-in agent tools. Use this to enable or disable groups of tools available to the agent.

class BetaManagedAgentsAgentToolset20260401ReadInput { filePath; viewRange; }

Input payload for the read tool. Reads file contents relative to the runner's working directory (or absolute when the runner permits).

String filePath

Path of the file to read.

Optional<List<Long>> viewRange

Optional [start_line, end_line] 1-indexed inclusive range. When omitted the entire file is returned. end_line of 0 or negative means "to end of file".

minItems2
maxItems2
class BetaManagedAgentsAgentToolset20260401WriteInput { content; filePath; }

Input payload for the write tool. Writes (overwriting) the entire file contents.

String content

Full file contents to write.

String filePath

Path of the file to write.

class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAnthropicSkill { type; skillId; version; }

A resolved Anthropic-managed skill.

Type type
String skillId
String version
class BetaManagedAgentsAnthropicSkillParams { type; skillId; version; }

An Anthropic-managed skill.

Type type
String skillId

Identifier of the Anthropic skill (e.g., "xlsx").

minLength1
maxLength64
Optional<String> version

Version to pin. Defaults to latest if omitted.

minLength1
maxLength64
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsAwsRoleExecutionIdentity { type = "aws_role"; roleArn; }

An AWS IAM role principal as returned in API responses.

JsonValue type = "aws_role"
String roleArn

The IAM role's ARN.

class BetaManagedAgentsAwsRoleExecutionIdentityParams { type = "aws_role"; roleArn; }

An AWS IAM role principal.

JsonValue type = "aws_role"
String roleArn

The IAM role's ARN, e.g. "arn:aws:iam::123456789012:role/my-agent-runner". Maximum 2048 characters.

maxLength2048
class BetaManagedAgentsBashToolConfig { type = "bash"; enabled; name; permissionPolicy; }

Configuration for the bash tool.

JsonValue type = "bash"
boolean enabled
JsonValue name = "bash"
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsBashToolConfigParams { type; name; enabled; permissionPolicy; }

Configuration override for the bash tool.

class BetaManagedAgentsCustomSkill { type; skillId; version; }

A resolved user-created custom skill.

Type type
String skillId
String version
class BetaManagedAgentsCustomSkillParams { type; skillId; version; }

A user-created custom skill.

Type type
String skillId

Tagged ID of the custom skill (e.g., "skill_01XJ5...").

minLength1
maxLength64
Optional<String> version

Version to pin. Defaults to latest if omitted.

minLength1
maxLength64
class BetaManagedAgentsCustomTool { type; description; inputSchema; name; }

A custom tool as returned in API responses.

Type type
String description

JSON Schema for custom tool input parameters.

JsonValue type = "object"
Optional<Properties> properties
Optional<List<String>> required
String name
class BetaManagedAgentsCustomToolInputSchema { type = "object"; properties; required; }

JSON Schema for custom tool input parameters.

JsonValue type = "object"
Optional<Properties> properties
Optional<List<String>> required
class BetaManagedAgentsCustomToolParams { type; description; inputSchema; name; }

A custom tool that is executed by the API client rather than the agent. When the agent calls this tool, an agent.custom_tool_use event is emitted and the session goes idle, waiting for the client to provide the result via a user.custom_tool_result event.

Type type
String description

Description of what the tool does, shown to the agent to help it decide when to use the tool.

minLength1

JSON Schema defining the expected input parameters for the tool.

JsonValue type = "object"
Optional<Properties> properties
Optional<List<String>> required
String name

Unique name for the tool. 1-128 characters; letters, digits, underscores, and hyphens.

minLength1
maxLength128
class BetaManagedAgentsEditToolConfig { type = "edit"; enabled; name; permissionPolicy; }

Configuration for the edit tool.

JsonValue type = "edit"
boolean enabled
JsonValue name = "edit"
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsEditToolConfigParams { type; name; enabled; permissionPolicy; }

Configuration override for the edit tool.

class BetaManagedAgentsEffortHigh { type; }

High effort. Favors reasoning depth.

Type type
class BetaManagedAgentsEffortLow { type; }

Low effort. Favors latency over reasoning depth.

Type type
class BetaManagedAgentsEffortMax { type; }

Maximum effort. Favors reasoning depth over latency.

Type type
class BetaManagedAgentsEffortMedium { type; }

Medium effort. Balances latency and reasoning depth.

Type type
class BetaManagedAgentsEffortXhigh { type; }

Extra-high effort. Not all models accept this level.

Type type
class BetaManagedAgentsExecutionIdentity: union

Execution principal for runs of this agent as returned in API responses.

class BetaManagedAgentsAwsRoleExecutionIdentity { type = "aws_role"; roleArn; }

An AWS IAM role principal as returned in API responses.

JsonValue type = "aws_role"
String roleArn

The IAM role's ARN.

class BetaManagedAgentsServiceAccountExecutionIdentity { type = "service_account"; }

The Anthropic-managed service account as returned in API responses.

JsonValue type = "service_account"
class BetaManagedAgentsExecutionIdentityParams: union

Execution principal for runs of this agent: service_account (the default) or aws_role.

class BetaManagedAgentsAwsRoleExecutionIdentityParams { type = "aws_role"; roleArn; }

An AWS IAM role principal.

JsonValue type = "aws_role"
String roleArn

The IAM role's ARN, e.g. "arn:aws:iam::123456789012:role/my-agent-runner". Maximum 2048 characters.

maxLength2048
class BetaManagedAgentsServiceAccountExecutionIdentityParams { type = "service_account"; }

The Anthropic-managed service account — the default execution principal. Carries no identifier.

JsonValue type = "service_account"
class BetaManagedAgentsGlobToolConfig { type = "glob"; enabled; name; permissionPolicy; }

Configuration for the glob tool.

JsonValue type = "glob"
boolean enabled
JsonValue name = "glob"
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsGlobToolConfigParams { type; name; enabled; permissionPolicy; }

Configuration override for the glob tool.

class BetaManagedAgentsGrepToolConfig { type = "grep"; enabled; name; permissionPolicy; }

Configuration for the grep tool.

JsonValue type = "grep"
boolean enabled
JsonValue name = "grep"
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsGrepToolConfigParams { type; name; enabled; permissionPolicy; }

Configuration override for the grep tool.

class BetaManagedAgentsMcpServerUrlDefinition { type; name; url; }

URL-based MCP server connection as returned in API responses.

Type type
String name
String url
class BetaManagedAgentsMcpToolConfig { enabled; name; permissionPolicy; }

Resolved configuration for a specific MCP tool.

boolean enabled
String name
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsMcpToolConfigParams { name; enabled; permissionPolicy; }

Configuration override for a specific MCP tool.

String name

Name of the MCP tool to configure. 1-128 characters.

minLength1
maxLength128
Optional<Boolean> enabled

Whether this tool is enabled. Overrides the default_config setting.

Optional<PermissionPolicy> permissionPolicy

Permission policy for this tool. Overrides the default_config setting.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsMcpToolset { type; configs; defaultConfig; mcpServerName; }
class BetaManagedAgentsMcpToolsetDefaultConfig { enabled; permissionPolicy; }

Resolved default configuration for all tools from an MCP server.

boolean enabled
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsMcpToolsetDefaultConfigParams { enabled; permissionPolicy; }

Default configuration for all tools from an MCP server.

Optional<Boolean> enabled

Whether tools are enabled by default. Defaults to true if not specified.

Optional<PermissionPolicy> permissionPolicy

Default permission policy for tools from this server.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsMcpToolsetParams { type; mcpServerName; configs; defaultConfig; }

Configuration for tools from an MCP server defined in mcp_servers.

enum BetaManagedAgentsModel

The model that will power your agent.

See models for additional details and options.

class BetaManagedAgentsModelConfig { id; effort; inferenceGeo; speed; }

Model identifier and configuration.

class BetaManagedAgentsModelConfigParams { id; effort; inferenceGeo; speed; }

An object that defines additional configuration control over model use

class BetaManagedAgentsMultiagentAdvisor: union

Whether the session's primary thread can consult an advisor model.

class BetaManagedAgentsMultiagentAdvisorEnabled { type = "enabled"; model; }

The session's primary thread can consult model mid-turn.

JsonValue type = "enabled"
String model

The advisor model id.

class BetaManagedAgentsMultiagentAdvisorDisabled { type = "disabled"; }

The agent has no advisor.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentAdvisorDisabled { type = "disabled"; }

The agent has no advisor.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentAdvisorDisabledParams { type = "disabled"; }

The agent has no advisor.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentAdvisorEnabled { type = "enabled"; model; }

The session's primary thread can consult model mid-turn.

JsonValue type = "enabled"
String model

The advisor model id.

class BetaManagedAgentsMultiagentAdvisorEnabledParams { type = "enabled"; model; }

The session's primary thread can consult model mid-turn.

JsonValue type = "enabled"
String model

A Claude model id. The model must be permitted as an advisor for this agent's model.

minLength1
maxLength256
class BetaManagedAgentsMultiagentAdvisorParams: union

Whether the session's primary thread can consult an advisor model.

class BetaManagedAgentsMultiagentAdvisorEnabledParams { type = "enabled"; model; }

The session's primary thread can consult model mid-turn.

JsonValue type = "enabled"
String model

A Claude model id. The model must be permitted as an advisor for this agent's model.

minLength1
maxLength256
class BetaManagedAgentsMultiagentAdvisorDisabledParams { type = "disabled"; }

The agent has no advisor.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentCoordinator { type; agents; }

Resolved coordinator topology with a concrete agent roster.

Type type
List<Agent> agents

Agents the coordinator may spawn as session threads, each resolved to a specific version.

One of the following:
class BetaManagedAgentsAgentReference { type; id; version; }

A resolved agent reference with a concrete version.

Type type
String id
long version
formatint32
class BetaManagedAgentsAdvisor { type; model; }

Platform advisor roster entry: a model the session's primary thread may consult mid-turn.

Type type
String model

The advisor model id.

class BetaManagedAgentsMultiagentCoordinatorParams { type; agents; }

A coordinator topology: the session's primary thread orchestrates work by spawning session threads, each running an agent drawn from the agents roster.

class BetaManagedAgentsMultiagentInlineAgents: union

Whether the agent can define inline agents. The agent defines an inline agent itself, in a workflow run's plan or when it spawns a session thread, and the inline agent is not saved.

class BetaManagedAgentsMultiagentInlineAgentsEnabled { type = "enabled"; }

The agent can define inline agents.

JsonValue type = "enabled"
class BetaManagedAgentsMultiagentInlineAgentsDisabled { type = "disabled"; }

The agent cannot define inline agents.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentInlineAgentsDisabled { type = "disabled"; }

The agent cannot define inline agents.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentInlineAgentsDisabledParams { type = "disabled"; }

The agent cannot define inline agents.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentInlineAgentsEnabled { type = "enabled"; }

The agent can define inline agents.

JsonValue type = "enabled"
class BetaManagedAgentsMultiagentInlineAgentsEnabledParams { type = "enabled"; }

The agent can define inline agents.

JsonValue type = "enabled"
class BetaManagedAgentsMultiagentInlineAgentsParams: union

Whether the agent can define inline agents. The agent defines an inline agent itself, in a workflow run's plan or when it spawns a session thread, and the inline agent is not saved.

class BetaManagedAgentsMultiagentInlineAgentsEnabledParams { type = "enabled"; }

The agent can define inline agents.

JsonValue type = "enabled"
class BetaManagedAgentsMultiagentInlineAgentsDisabledParams { type = "disabled"; }

The agent cannot define inline agents.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentPredefinedAgentParams: union

One agent in a predefined_agents list. It is an agent ID string, an agent reference with an optional version, or self for the agent that owns this configuration.

String
class BetaManagedAgentsAgentParams { type; id; version; }

Specification for an Agent. Provide a specific version or use the short-form agent="agent_id" for the most recent version

Type type
String id

The agent ID.

minLength1
maxLength128
Optional<Long> version

The specific agent version to use. Omit to use the latest version. Must be at least 1 if specified.

formatint32
class BetaManagedAgentsMultiagentSelfParams { type; }

Sentinel roster entry meaning "the agent that owns this configuration". Resolved server-side to a concrete agent reference.

Type type
class BetaManagedAgentsMultiagentSelfParams { type; }

Sentinel roster entry meaning "the agent that owns this configuration". Resolved server-side to a concrete agent reference.

Type type
class BetaManagedAgentsMultiagentSubagents: union

Whether the agent can spawn session threads.

class BetaManagedAgentsMultiagentSubagentsEnabled { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can spawn session threads.

class BetaManagedAgentsMultiagentSubagentsDisabled { type = "disabled"; }

The agent cannot spawn session threads.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentSubagentsDisabled { type = "disabled"; }

The agent cannot spawn session threads.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentSubagentsDisabledParams { type = "disabled"; }

The agent cannot spawn session threads.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentSubagentsEnabled { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can spawn session threads.

class BetaManagedAgentsMultiagentSubagentsEnabledParams { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can spawn session threads. Each thread runs a predefined agent, which is a saved agent in predefined_agents, or an inline agent, which the agent defines when it spawns the thread and which is not saved. If inline_agents is disabled, predefined_agents must name at least one agent.

class BetaManagedAgentsMultiagentSubagentsParams: union

Whether the agent can spawn session threads.

class BetaManagedAgentsMultiagentSubagentsEnabledParams { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can spawn session threads. Each thread runs a predefined agent, which is a saved agent in predefined_agents, or an inline agent, which the agent defines when it spawns the thread and which is not saved. If inline_agents is disabled, predefined_agents must name at least one agent.

class BetaManagedAgentsMultiagentSubagentsDisabledParams { type = "disabled"; }

The agent cannot spawn session threads.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentWorkflows: union

Whether the agent can start workflow runs.

class BetaManagedAgentsMultiagentWorkflowsEnabled { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can start workflow runs.

class BetaManagedAgentsMultiagentWorkflowsDisabled { type = "disabled"; }

The agent cannot start workflow runs.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentWorkflowsDisabled { type = "disabled"; }

The agent cannot start workflow runs.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentWorkflowsDisabledParams { type = "disabled"; }

The agent cannot start workflow runs.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagentWorkflowsEnabled { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can start workflow runs.

class BetaManagedAgentsMultiagentWorkflowsEnabledParams { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can start workflow runs. Each run follows a plan, a program that the agent writes. A plan can use predefined agents, which are the saved agents in predefined_agents, and inline agents, which it defines itself and which are not saved. If inline_agents is disabled, predefined_agents must name at least one agent.

class BetaManagedAgentsMultiagentWorkflowsParams: union

Whether the agent can start workflow runs.

class BetaManagedAgentsMultiagentWorkflowsEnabledParams { type = "enabled"; inlineAgents; predefinedAgents; }

The agent can start workflow runs. Each run follows a plan, a program that the agent writes. A plan can use predefined agents, which are the saved agents in predefined_agents, and inline agents, which it defines itself and which are not saved. If inline_agents is disabled, predefined_agents must name at least one agent.

class BetaManagedAgentsMultiagentWorkflowsDisabledParams { type = "disabled"; }

The agent cannot start workflow runs.

JsonValue type = "disabled"
class BetaManagedAgentsMultiagent20261001 { type = "multiagent_20261001"; advisor; subagents; workflows; }

Resolved multiagent configuration with three members, each enabled or disabled on its own.

class BetaManagedAgentsMultiagent20261001Params { type = "multiagent_20261001"; advisor; subagents; workflows; }

Multiagent configuration with three members, each enabled or disabled on its own. On an update, if the agent's stored multiagent also has type multiagent_20261001, this configuration is merged into the stored one, level by level, instead of replacing it. A key that the update omits keeps its stored value. A key sent as null takes its default, on create as well, so "workflows": null enables workflows. An object sent with a type other than the stored one replaces the stored object, and the keys that it omits take their defaults. A predefined_agents list that is sent replaces the stored list. Every object that is sent needs its type, and an enabled advisor needs its model. Other validation applies to the merged result.

class BetaManagedAgentsReadToolConfig { type = "read"; enabled; name; permissionPolicy; }

Configuration for the read tool.

JsonValue type = "read"
boolean enabled
JsonValue name = "read"
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsReadToolConfigParams { type; name; enabled; permissionPolicy; }

Configuration override for the read tool.

class BetaManagedAgentsServiceAccountExecutionIdentity { type = "service_account"; }

The Anthropic-managed service account as returned in API responses.

JsonValue type = "service_account"
class BetaManagedAgentsServiceAccountExecutionIdentityParams { type = "service_account"; }

The Anthropic-managed service account — the default execution principal. Carries no identifier.

JsonValue type = "service_account"
class BetaManagedAgentsSessionThreadAgent { type; id; description; /* 8 more */ }

Resolved agent definition for a single session_thread. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it from Session.agent.

class BetaManagedAgentsSkillParams: union

Skill to load in the session container.

class BetaManagedAgentsAnthropicSkillParams { type; skillId; version; }

An Anthropic-managed skill.

Type type
String skillId

Identifier of the Anthropic skill (e.g., "xlsx").

minLength1
maxLength64
Optional<String> version

Version to pin. Defaults to latest if omitted.

minLength1
maxLength64
class BetaManagedAgentsCustomSkillParams { type; skillId; version; }

A user-created custom skill.

Type type
String skillId

Tagged ID of the custom skill (e.g., "skill_01XJ5...").

minLength1
maxLength64
Optional<String> version

Version to pin. Defaults to latest if omitted.

minLength1
maxLength64
class BetaManagedAgentsUrlMcpServerParams { type; name; url; }

URL-based MCP server connection.

Type type
String name

Unique name for this server, referenced by mcp_toolset configurations. 1-255 characters.

minLength1
maxLength255
String url

Endpoint URL for the MCP server.

maxLength2048
class BetaManagedAgentsUserLocation { type = "approximate"; city; country; /* 2 more */ }

Approximate user location for search result localization.

JsonValue type = "approximate"

Location precision. Only "approximate" is supported.

Optional<String> city

City name.

minLength1
maxLength255
Optional<String> country

Two-letter ISO 3166-1 country code, uppercase.

Optional<String> region

Region or state name.

minLength1
maxLength255
Optional<String> timezone

IANA timezone identifier, e.g. "America/Los_Angeles".

minLength1
maxLength255
class BetaManagedAgentsWebFetchToolConfig { type = "web_fetch"; enabled; name; /* 5 more */ }

Configuration for the web_fetch tool.

class BetaManagedAgentsWebFetchToolConfigParams { type; name; allowedDomains; /* 5 more */ }

Configuration override for the web_fetch tool.

class BetaManagedAgentsWebFetchUrlSourceAll { type = "all"; }

Every URL from this source may be fetched. This is the default.

JsonValue type = "all"
class BetaManagedAgentsWebFetchUrlSourceExcept { type = "except"; tools; }

Every tool's results contribute URLs that may be fetched, except the named tools' results.

JsonValue type = "except"

The tools whose results do not contribute. Between 1 and 128 entries, each with a different name. An empty list is rejected; use "all" to leave out no tool's results.

JsonValue type = "tool_reference"

Must be "tool_reference".

String name

Name of the tool. Compared exactly, so upper and lower case letters are different.

minLength1
maxLength128
class BetaManagedAgentsWebFetchUrlSourceNone { type = "none"; }

This source contributes no URLs that may be fetched.

JsonValue type = "none"
class BetaManagedAgentsWebFetchUrlSourceOnly { type = "only"; tools; }

Only the named tools' results contribute URLs that may be fetched.

JsonValue type = "only"

The tools whose results contribute. Between 1 and 128 entries, each with a different name. An empty list is rejected; use "none" to allow no tool's results.

JsonValue type = "tool_reference"

Must be "tool_reference".

String name

Name of the tool. Compared exactly, so upper and lower case letters are different.

minLength1
maxLength128
enum BetaManagedAgentsWebFetchUrlSourceShorthand

String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}.

ALL("all")
NONE("none")
class BetaManagedAgentsWebFetchUrlSourceToolFilter: union

Which tools' results contribute URLs that may be fetched.

class BetaManagedAgentsWebFetchUrlSourceToolFilterParams: union

Which tools' results contribute URLs that may be fetched. Accepts the string "all" or "none", or an object whose type is "all", "none", "only" or "except". Responses use the object form.

enum BetaManagedAgentsWebFetchUrlSourceShorthand

String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}.

ALL("all")
NONE("none")
class BetaManagedAgentsWebFetchUrlSourceToolFilter: union

Which tools' results contribute URLs that may be fetched.

class BetaManagedAgentsWebFetchUrlSourceToolReference { type = "tool_reference"; name; }

Names one tool in an only or except list.

JsonValue type = "tool_reference"

Must be "tool_reference".

String name

Name of the tool. Compared exactly, so upper and lower case letters are different.

minLength1
maxLength128
class BetaManagedAgentsWebFetchUrlSourceUserInput: union

Whether URLs in the text of user messages may be fetched.

class BetaManagedAgentsWebFetchUrlSourceAll { type = "all"; }

Every URL from this source may be fetched. This is the default.

JsonValue type = "all"
class BetaManagedAgentsWebFetchUrlSourceNone { type = "none"; }

This source contributes no URLs that may be fetched.

JsonValue type = "none"
class BetaManagedAgentsWebFetchUrlSourceUserInputParams: union

Whether URLs in the text of user messages may be fetched. Accepts the string "all" or "none", or the object {"type": "all"} or {"type": "none"}. Responses use the object form.

enum BetaManagedAgentsWebFetchUrlSourceShorthand

String form of a url_sources value that has no field other than its type: "all" means {"type": "all"} and "none" means {"type": "none"}.

ALL("all")
NONE("none")
class BetaManagedAgentsWebFetchUrlSourceUserInput: union

Whether URLs in the text of user messages may be fetched.

class BetaManagedAgentsWebFetchUrlSourceAll { type = "all"; }

Every URL from this source may be fetched. This is the default.

JsonValue type = "all"
class BetaManagedAgentsWebFetchUrlSourceNone { type = "none"; }

This source contributes no URLs that may be fetched.

JsonValue type = "none"
class BetaManagedAgentsWebFetchUrlSources { clientToolResults; serverToolResults; userInput; }

Which sources contribute URLs the web_fetch tool may fetch. A key that is null was not set and allows every URL from that source.

Optional<BetaManagedAgentsWebFetchUrlSourceToolFilter> clientToolResults

Which custom tools' results contribute URLs that may be fetched. Null when not set, which allows every custom tool's results.

One of the following:
Optional<BetaManagedAgentsWebFetchUrlSourceToolFilter> serverToolResults

Which of the web_search and web_fetch tools' results contribute URLs that may be fetched. Null when not set, which allows both.

One of the following:

Whether URLs in the text of user messages may be fetched. Null when not set, which allows them.

One of the following:
class BetaManagedAgentsWebFetchUrlSourceAll { type = "all"; }

Every URL from this source may be fetched. This is the default.

JsonValue type = "all"
class BetaManagedAgentsWebFetchUrlSourceNone { type = "none"; }

This source contributes no URLs that may be fetched.

JsonValue type = "none"
class BetaManagedAgentsWebFetchUrlSourcesParams { clientToolResults; serverToolResults; userInput; }

Which sources contribute URLs the web_fetch tool may fetch. When web_fetch is limited to URLs the conversation has already shown the model (in a user message, a custom tool's result, or an earlier web_search or web_fetch result), each key narrows one of those sources and defaults to "all". Setting all three keys to "none" is rejected.

class BetaManagedAgentsWebSearchToolConfig { type = "web_search"; enabled; name; /* 4 more */ }

Configuration for the web_search tool.

class BetaManagedAgentsWebSearchToolConfigParams { type; name; allowedDomains; /* 4 more */ }

Configuration override for the web_search tool.

class BetaManagedAgentsWriteToolConfig { type = "write"; enabled; name; permissionPolicy; }

Configuration for the write tool.

JsonValue type = "write"
boolean enabled
JsonValue name = "write"
PermissionPolicy permissionPolicy

Permission policy for tool execution.

One of the following:
class BetaManagedAgentsAlwaysAllowPolicy { type; }

Tool calls are automatically approved without user confirmation.

Type type
class BetaManagedAgentsAlwaysAskPolicy { type; }

Tool calls require user confirmation before execution.

Type type
class BetaManagedAgentsAutoPolicy { type = "auto"; }

The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.

JsonValue type = "auto"
class BetaManagedAgentsWriteToolConfigParams { type; name; enabled; permissionPolicy; }

Configuration override for the write tool.

АгентыВерсии

Список версий агента
VersionListPage beta().agents().versions().list(params = VersionListParams.none(), requestOptions = RequestOptions.none())
GET/v1/agents/{agent_id}/versions