session_id | string | yes | — | Platform session id. |
turn_id | string | yes | — | Unique identifier of the agent turn. |
input_id | string | yes | — | Platform input id of the user message that starts the turn. |
input | array of AgentInputBlock | yes | — | List of input entries. |
executor_session_ref | string | no | — | Value for executor_session_ref. |
config | AgentTurnConfig | no | — | Requested (turn.start) or effective (TurnStartResult.effective) turn configuration. Every member is optional in a request; the executor reports the values it actually applied. |
config.model | string | no | — | Model the turn runs on. When the capability lists models it must be one of models[].id: an executor answers any other with -32602 invalid params and never substitutes another model. When the capability lists no models the executor picks its own model and ignores this member; effective then reports the model it used. |
config.thinking_level | string | no | — | Reasoning effort of the turn: one of the thinking_levels of the turn’s model (AgentModel). Absent: the model’s default_thinking_level, or none. A level the model does not list answers -32602 invalid params; for a model that lists no levels the member is ignored and effective omits it. |
config.permission_mode | string | no | — | One of the capability permission_modes. Absent: the executor’s default mode. turn.start metadata tool_policy, when present, refines the permission of single tools on top of the mode. |
config.cwd | string | no | — | Working directory on the executor host. The executor rejects a directory outside its allowed roots with -32001 forbidden. When turn.start metadata carries tools_mcp_* (brain and hands on different machines, contract 1.4.0) cwd is a path on the hands machine: the executor does not check it against its own allowed roots and does not create a workspace for it on this machine; the hands machine’s own policy applies when a tool runs there. |
config.environment_info | EnvironmentInfo | no | — | Contract 1.4.0, optional. Sent only when brain and hands are on different machines (turn.start metadata carries tools_mcp_*): describes the hands machine, so the brain can tell the model where its tools run. Omitted when brain and hands are the same machine, and absent from TurnStartResult.effective. |
config.environment_info.os | string | no | — | Operating system of the hands machine, as ExecutorInfo.os (for example linux, darwin, windows). |
config.environment_info.arch | string | no | — | CPU architecture, as ExecutorInfo.arch. |
config.environment_info.shell | string | no | — | Shell the bash tool runs commands with on the hands machine (for example bash, zsh, powershell). |
config.environment_info.cwd | string | no | — | Default working directory of tools on the hands machine; the same value as AgentTurnConfig.cwd when that is set. |
config.environment_info.session_files_root | string | no | — | Directory on the hands machine where the session’s files are mounted, when the hands executor declared session_files. |
config.system | string | no | — | Extra system instructions from the platform agent definition. |
config.host_tools | array of HostTool | no | — | Contract 1.8.0. Requested only, sent only to an executor that declared agent.host_tools and only with tools_mcp_* in metadata. Tools of the session’s hands machine the brain offers the model next to its own tools: computer_observe and computer_action when the hands machine declared computer_use, absent otherwise (absent = none, so a session without a desktop never sees them). Every entry is offered under its name and input_schema exactly, and runs like the brain’s other tools through tools_mcp_url under that name. Its permission is metadata tool_policy[name] when present, else the entry’s permission: an ask call is approved once per call (interaction kind permission, the brain’s deterministic interaction id). A tool result image (an image content block of the tools endpoint answer) reaches the model with that result as an image and is never written to a session event (agent.tool_result carries the text only); the brain keeps the images of the session’s such calls in memory and prunes them in batches: once more than 28 calls have images, the oldest 25 drop together (keep 3, interval 25), so the request prefix stays unchanged between two prunes (pruned calls, and every call after a brain restart, keep their text). An invalid entry (a name that is not one of these two tools, a repeated name, a missing description, an input_schema that is not an object schema, a permission other than allow or ask) answers -32602 invalid params. The set may differ from turn to turn; a turn sees the set of its own turn.start. |
config.host_tools[].name | string | yes | enum: computer_observe, computer_action | Tool name the model sees and the tools endpoint runs (tool.json ToolName). |
config.host_tools[].description | string | yes | len: 1.. | Tool description the model sees. |
config.host_tools[].input_schema | object | yes | — | JSON Schema of the input object (type object), offered to the model as is. |
config.host_tools[].read_only | boolean | yes | — | The tool has no side effects on the machine (computer_observe), so the brain may run it concurrently with other read-only calls. |
config.host_tools[].permission | string | no | enum: allow, ask | Permission when turn.start metadata tool_policy does not name the tool. Absent: ask. |
config.mcp_tools | array of McpToolDefinition | no | — | Contract 1.14.0. Requested only, sent only to an executor that declared agent.mcp_tools and only with tools_mcp_* in metadata (omitted when the turn has none). The enabled tools of the MCP servers of the turn’s agent version (official mcp_servers with an mcp_toolset): the platform connects each server with its credential (the server’s bma_auth, else the session’s vaults), lists its tools when the turn starts and evaluates the mcp_toolset permission of each. The brain offers every entry to the model under name with input_schema exactly, next to its own tools, and runs a call like its other tools through tools_mcp_url under that name; the brain never connects an MCP server itself and never sees its credential. A server that could not be listed contributes no entry; the platform reports it as session.error (mcp_connection_failed_error or mcp_authentication_failed_error) and the turn goes on. A name that collides with one of the brain’s own tools answers -32602 invalid params. The set may differ from turn to turn; a turn sees the set of its own turn.start. |
config.mcp_tools[].name | string | yes | len: ..64; pattern: ^mcp__[a-zA-Z][a-zA-Z0-9-]{0,31}__[a-zA-Z][a-zA-Z0-9_-]{0,63}$ | Name the model sees and the tools endpoint runs: mcp__<mcp_server_name>__<tool_name>, at most 64 characters. A tool whose name would not fit the pattern is not offered. |
config.mcp_tools[].mcp_server_name | string | yes | pattern: ^[a-zA-Z][a-zA-Z0-9-]{0,31}$ | The agent’s name of the MCP server (mcp_servers[].name); agent.mcp_tool_use.mcp_server_name. |
config.mcp_tools[].tool_name | string | yes | pattern: ^[a-zA-Z][a-zA-Z0-9_-]{0,63}$ | The server’s own name of the tool (MCP tools/list name); agent.mcp_tool_use.name. |
config.mcp_tools[].description | string | no | — | The server’s description of the tool; absent when it gave none. |
config.mcp_tools[].input_schema | object | yes | — | The server’s JSON Schema of the input object (type object), offered to the model as is. |
config.mcp_tools[].permission | string | yes | enum: allow, ask | The mcp_toolset permission of the tool (always_allow: allow, always_ask: ask). ask: the brain asks once per call (interaction kind permission, the brain’s deterministic interaction id) and sends the answer as ai.beeos.bma/approval; the tools endpoint evaluates the same policy again. |
config.platform_tools | array of PlatformTool | no | — | Contract 1.26.0. Requested only, sent only to an executor that declared agent.platform_tools and only with tools_mcp_* in metadata (omitted when the turn has none). Tools the platform runs itself, on no machine, that the turn’s agent enables (generate_image: agent tools entry bma_image_generation_20261201 and a session model route that lists image models). The brain offers every entry to the model under name with input_schema exactly (the platform fills turn-specific values such as the generate_image model enum), next to its own tools, and runs a call like its other tools through tools_mcp_url under that name, with the same meta approval, idempotency key and sync_wait_ms; ask is asked once per call (interaction kind permission). A result image (an image content block of the answer, the preview of a generated image) reaches the model with that result only when the model accepts images and is never written to a session event; the brain copies structuredContent.files of the answer into agent.tool_result.bma_files. A name that collides with one of the brain’s own tools answers -32602 invalid params. The set may differ from turn to turn; a turn sees the set of its own turn.start. Contract 2.4.0: also sent, with platform_tools_mcp* in metadata instead, to a brain that runs its tools on the session’s machine (its executor declared agent.platform_tools and platform_credentials platform_tools), with only web_search and web_fetch; that brain runs these entries through platform_tools_mcp_url exactly like a brain with tools_mcp_* runs them through tools_mcp_url (same _meta, approval, idempotency key and events) and keeps running every other tool on its machine. |
config.platform_tools[].name | string | yes | enum: generate_image | Tool name the model sees and the tools endpoint runs. generate_image: input tool.json GenerateImageInput (with the turn’s model enum), structuredContent tool.json GenerateImageResult. |
config.platform_tools[].description | string | yes | len: 1.. | Tool description the model sees. |
config.platform_tools[].input_schema | object | yes | — | JSON Schema of the input object (type object), offered to the model as is. |
config.platform_tools[].permission | string | yes | enum: allow, ask | The agent’s permission policy of the tool (always_allow: allow, always_ask: ask), used when turn.start metadata tool_policy does not name it; the tools endpoint evaluates the same policy again. |
config.harness | string | no | — | Id of the hosted agent (one of the capability harnesses[].id) the turn runs on. Omitted: the executor’s only harness. An id the executor does not host answers -32012 capability_unavailable. |
config.input_skills | array of InputSkillDocument | no | — | Requested only. Exact authorized skill revisions for this opening input; never mutates session defaults. Requires agent.input_skills. The platform revalidates grants and the session frozen subset before dispatch. |
config.input_skills[].skill_id | string | yes | pattern: ^skl_[a-zA-Z0-9_-]{1,124}$ | Identifier of the skill. |
config.input_skills[].revision_id | string | yes | pattern: ^skr_[a-zA-Z0-9_-]{1,124}$ | Identifier of the revision. |
config.input_skills[].name | string | yes | len: 1..255 | Value for name. |
config.input_skills[].body | string | yes | len: 1..65536 | Value for body. |
config.input_skills[].body_sha256 | string | yes | pattern: ^[0-9a-f]{64}$ | Value for body_sha256. |
config.input_skill_receipt | InputSkillReceipt | no | — | Effective only. Returned after exact selected skill bytes have been installed for the opening input. Missing or mismatched receipt is not successful skill preparation. |
config.input_skill_receipt.input_id | string | yes | len: 1.. | Identifier of the user input that triggered or steered the turn. |
config.input_skill_receipt.skills | array of InputSkillVersionReceipt | yes | — | List of skills entries. |
config.custom_tools | array of CustomToolDefinition | no | — | Contract 1.7.0. Requested only. The custom tools of the turn’s agent version, sent with every turn.start and only to an executor that declared agent.custom_tools (omitted when the agent has none). The executor exposes exactly these next to its own tools for the turn; a name that collides with one of its own tools answers -32602 invalid params. |
config.custom_tools[].name | string | yes | len: 1..128 | Value for name. |
config.custom_tools[].description | string | yes | — | Value for description. |
config.custom_tools[].input_schema | object | yes | — | JSON Schema of the tool input (an object schema). |
deadline_ms | integer | no | range: 1.. | Operation deadline in milliseconds. |
metadata | object | no | — | String key/value pairs the platform adds to the turn. Per-turn credentials the executor declared in AgentCapability.platform_credentials: model_base_url, model_token (and optionally model_context_window, model_max_output_tokens, model_input_images) for harness_model; for brain_tools (contract 1.4.0, only when this machine is the brain and a different machine the hands of the session) tools_mcp_url (https://executor.<domain>/v1/machines/\{brain_machine_id\}/mcp), tools_mcp_token and tools_mcp_token_expires_at (RFC 3339, 1 hour after turn.start). With tools_mcp_* present every tool call of the turn must go to that endpoint as an MCP tools/call (tools bash, read, write, edit, glob, grep) and none may run on this machine: when the endpoint cannot be reached or refuses the token the call fails and the executor never falls back to running the tool locally (fail closed). The token is bound to the turn’s event epoch: the same turn started again after an executor restart (turn.start with the same turn_id, a new epoch) carries a new token and the previous token is refused. Refresh with tools_token.refresh. tool_policy is a JSON object of tool name to allow, ask or deny (for example {“bash”:“ask”,“write”:“deny”}): the permission of those tools for this turn, applied over AgentTurnConfig.permission_mode; an executor may only make a tool stricter than its own ceiling, never looser, and a tool the object does not name keeps the mode’s permission. Keys the executor does not know are ignored. For platform_tools (contract 2.4.0, only when this machine runs the turn’s brain and its tools itself and the turn’s config.platform_tools is not empty): platform_tools_mcp_url (the same endpoint, https://executor.<domain>/v1/machines/\{machine_id\}/mcp), platform_tools_mcp_token and platform_tools_mcp_token_expires_at (RFC 3339, 1 hour after turn.start). Only the calls of config.platform_tools go there, as an MCP tools/call with the same meta as with tools_mcp*; every other tool of the turn runs on this machine as before. The endpoint answers this token’s tools/list with the turn’s platform_tools only and any other tool name with invalid params. When the endpoint cannot be reached or refuses the token the platform tool call fails; it never runs on this machine. egress (contract 1.9.0, only to an executor that declared egress.forwarder): the JSON text of the session’s EgressHandoff (schemas/executor.json) for an executor that runs the turn and its tools itself; it replaces the session’s handoff as session.assign metadata egress does, and a turn.start without it removes the handoff. |