?channel=control). Every executor registers immediately after the WebSocket handshake and renews its lease via periodic heartbeats.
Methods overview
| Method | Direction | Kind | Since | Capability | Summary |
|---|---|---|---|---|---|
executor.register | Executor → Platform | request | bma.executor.v1 | — | Register an executor connection. |
executor.heartbeat | Executor → Platform | request | bma.executor.v1 | — | Refresh the executor lease. |
executor.token.refresh | Executor → Platform | request | bma.executor.v1.1 | — | Extend the connection with a fresh executor token. |
executor.capabilities.update | Executor → Platform | notification | bma.executor.v1 | — | Publish changed executor capabilities. |
executor.drain | Platform → Executor | request | bma.executor.v1 | — | Ask the executor to drain. |
executor.close | Bidirectional | notification | bma.executor.v1 | — | Close the executor connection. |
executor.register
Direction: Executor → Platform · Kind: request · Since: bma.executor.v1
Executor to harness request, the first frame on the control channel. protocol MUST equal the negotiated WebSocket subprotocol; otherwise the server answers -32010 and closes with 4003. A machine-scoped executor sends an empty environment_id. resume.active_sessions reattaches sessions after reconnect. A machine-scoped executor that declares neither capabilities.process nor capabilities.agent is answered -32012 with data.reason “capability_missing” and data.capability “process” instead of a result; no runtime is bound and the connection stays unregistered.
Parameters (Input)
| Name | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
protocol | string | yes | enum: bma.executor.v1, bma.executor.v1.1 | Value of both the WebSocket subprotocol and executor.register protocol. A v1.1 server serves v1 executors and never sends them v1.1 methods. |
environment_id | string | yes | — | Selfhost environment id; empty for a machine-scoped executor. |
executor | ExecutorInfo | yes | — | Executor identity reported at token bootstrap and registration. |
executor.name | string | yes | — | Human-readable name identifying this executor instance. |
executor.os | string | yes | — | Host operating system (linux, darwin, or windows). |
executor.arch | string | yes | — | Host CPU architecture (amd64 or arm64). |
executor.version | string | yes | — | Semantic version of the executor binary or SDK runtime. |
executor.labels | array of string | no | — | Contract 1.4.0, optional. Labels the executor reports about itself (at most 32, each 1-64 characters of a-z 0-9 . _ -), set by the machine’s owner in the executor’s local configuration (for example BMA_LABELS or the SDK Options.Labels). The platform accepts them as given and does not validate their meaning, and it adds its own os:<os> and arch:<arch> labels from os and arch. Labels only narrow a choice among machines the project is already authorized to use (environment placement selectors); no authorization or security decision depends on them. Omitted: no labels. |
capabilities | Capabilities | yes | — | Executor capability object. The server only sends a method to an executor that advertised its capability; otherwise the executor answers -32012 capability_unavailable. |
capabilities.shell | ShellCapability | no | — | v1 one-shot shell tools. |
capabilities.shell.enabled | boolean | yes | — | Whether built-in one-shot shell (bash) execution is enabled. |
capabilities.files | FilesCapability | no | — | v1 file tools. |
capabilities.files.enabled | boolean | yes | — | Whether built-in file tools (read/write/edit/glob/grep) are enabled. |
capabilities.files.read_roots | array of string | no | — | Allowed filesystem root directories for read operations. |
capabilities.files.write_roots | array of string | no | — | Allowed filesystem root directories for write operations. |
capabilities.mcp | McpCapability | no | — | Environment-origin MCP servers. |
capabilities.mcp.stdio | boolean | no | — | Whether stdio-based local MCP servers are supported. |
capabilities.mcp.http | boolean | no | — | Whether Streamable HTTP / SSE MCP servers are supported. |
capabilities.mcp.max_servers | integer | no | — | Maximum number of concurrent MCP servers supported. |
capabilities.mcp.secret_env | boolean | no | — | The executor accepts transport.secret_env on stdio servers: resolved secret values it injects only into the server process environment, never persisting, logging or echoing them. Without it the server keeps secret: references in env, which the executor rejects. |
capabilities.chrome | boolean | no | — | Whether Chrome browser automation capability is available. |
capabilities.computer_use | boolean | no | — | Whether desktop computer-use tools are available. |
capabilities.display | boolean | DisplayCapability | no | — | v1 boolean or v1.1 DisplayCapability object. |
capabilities.process | ProcessCapability | no | — | v1.1 process.* support. pty, file_transfer, package_install and git_credentials are additive: the harness only sends the matching process.start fields to an executor that set them, and fails the process explicitly otherwise. |
capabilities.process.enabled | boolean | yes | — | Whether managed background process (process.*) methods are enabled. |
capabilities.process.max_processes | integer | no | — | Maximum concurrent background processes allowed. |
capabilities.process.buffer_bytes | integer | no | — | Ring-buffer size in bytes per managed process output stream. |
capabilities.process.pty | boolean | no | — | Accepts process.start io_mode “pty”. |
capabilities.process.file_transfer | boolean | no | — | Accepts process.start file_transfer. |
capabilities.process.git_credentials | boolean | no | — | Accepts process.start git_credentials. |
capabilities.process.package_install | boolean | no | — | Accepts process.start package_install. |
capabilities.artifacts | ArtifactCapability | no | — | v1.1 artifact upload (POST /v1/environments/{environment_id}/artifacts; legacy alias POST /v1/executors/artifacts). Environment-scoped executors only. |
capabilities.artifacts.upload | boolean | yes | — | Whether artifact upload to the platform is supported. |
capabilities.artifacts.max_bytes | integer | no | — | Maximum single artifact upload size in bytes. |
capabilities.terminal | TerminalCapability | no | — | v1.1 terminal.* support. Machine-scoped executors only. |
capabilities.terminal.enabled | boolean | yes | — | Whether interactive PTY terminal (terminal.*) methods are enabled. |
capabilities.terminal.kinds | array of string | no | — | Supported terminal transport kinds. |
capabilities.terminal.max_sessions | integer | no | — | Maximum concurrent interactive terminal sessions. |
capabilities.skills | SkillsCapability | no | — | skill.install support. Machine-scoped executors only. |
capabilities.skills.install | boolean | yes | — | Whether on-demand skill.install is supported. |
capabilities.workspace | WorkspaceCapability | no | — | workspace.backup support and the startup restore of a pending backup. Machine-scoped executors only. |
capabilities.workspace.backup | boolean | yes | — | Whether workspace.backup and startup restore are supported. |
capabilities.agent | AgentCapability | no | — | agent capability. Present with enabled=true when the executor runs a complete agent and accepts turn.start, turn.input, turn.cancel, session.close and interaction.response (and agent.custom_tool_result when custom_tools is true). |
capabilities.agent.enabled | boolean | yes | — | Whether this executor hosts an agent brain loop (turn.*). |
capabilities.agent.models | array of AgentModel | no | — | Models the local agent can run. An empty list means the executor picks its own model and ignores AgentTurnConfig.model. |
capabilities.agent.permission_modes | array of string | no | — | Permission mode ids the local agent understands, for example default, accept_edits, plan, bypass_permissions. The executor defines the ids; the platform only passes one back in AgentTurnConfig.permission_mode. |
capabilities.agent.interaction_kinds | array of string | no | — | Interaction kinds the executor may open with interaction.request. |
capabilities.agent.file_inputs | boolean | no | — | The executor fetches the bytes of the file blocks (file_id) of turn.start and turn.input itself. Declare it only when it can: through the tools endpoint of the turn (tools_mcp_url and tools_mcp_token in turn.start metadata, GET <tools_mcp_url without /mcp>/files/<file_id>/content), or, on a machine daemon token, through the turn input files routes (GET /v1/machines/{machine_id}/sessions/{session_id}/turns/{turn_id}/input_files and …/{file_id}/content, docs/architecture/executor-turn-input-files.md). Together with the agent accepting images (harness.image_inputs) it is what lets the platform accept an image input for the agent: without it the input is refused with 400, with it the platform sends the file blocks and never refuses an image the agent accepts. Absent means false. |
capabilities.agent.input_by_reference | boolean | no | — | Contract 1.7.0. The executor fetches a turn input the platform does not inline: when turn.start or turn.input would serialize to more than 48 KiB (the 64 KiB control frame limit with headroom), its input is a single input_ref block (AgentInputBlock type input_ref: input_id, size_bytes, sha256) instead of the blocks, and the executor reads them with its machine credential: GET /v1/machines/{machine_id}/inputs/{input_id} on the executor domain answers 200 with the AgentInputBlock array the input would have carried (404 unless the input belongs to a session of the credential’s machine; readable until its turn ends). The executor checks size_bytes and sha256 and handles the blocks exactly as if they had come inline. Declare it only when it can make that request. Without it such an input ends its turn: session.error (bma_error_code input_too_large, not retried) and the turn fails; the platform never retries a request that cannot fit. Absent means false. |
capabilities.agent.steering | boolean | no | — | Contract 1.25.0. The local agent takes a turn.input at the running turn’s next step boundary: after the results of the tool calls of its current step and before its next model request, so the input can change what the agent does next in the same turn. When the model answers without a tool call, the agent reads an input that arrived meanwhile before it ends the turn; once it ends the turn it answers a later turn.input -32013 conflict. The platform hands a steering user.message (bma_delivery_mode steering) to the running turn as turn.input only when its brain declares it; otherwise it re-files the message as queued (bma_delivery_reason harness_no_steering) and runs it as a turn of its own. Absent means false. |
capabilities.agent.history_rebuild | boolean | no | — | Contract 2.2.0. When the agent opens a session it has no local state for, it reads the conversation with session.history and rebuilds its context from it before running the turn (answering turn.start with context_rebuilt true when there was a past); it never runs such a turn without that context. The platform forks a session (POST /v1/sessions/{session_id}/fork: a new session that starts with a copy of the conversation) only when the session’s brain runs on an executor that declares it, else 400 fork_unsupported; the fork’s first turn reaches the brain with no local state and the copied conversation in session.history. Absent means false. |
capabilities.agent.max_sessions | integer | no | range: 1.. | Turns the executor runs at once. A turn.start while that many turns are running answers -32009 executor_busy (retryable). A session with no running turn holds no slot; an executor may release the local resources of its least recently used idle sessions and load them again from executor_session_ref on the next turn.start. |
capabilities.agent.turn_resume | boolean | no | — | The executor keeps the state of its turns across a process restart. When it registers again without a session whose turn was running, the platform starts the same turn again in a new event epoch (turn.start with the same turn_id, input_id and executor_session_ref, then the turn.input the turn already received) and the executor continues the turn from its own state. Without it such a turn ends failed (session.error, session.status_idle retries_exhausted) and is not sent again: an executor without that state would run the turn again from its opening input and repeat tool calls whose effects already happened. |
capabilities.agent.platform_credentials | array of string | no | — | Per-turn credentials the executor asks the platform to hand it in turn.start metadata: brain_tools (tools_mcp_url, tools_mcp_token: the session’s tools endpoint) and harness_model (model_base_url, model_token: the session’s model endpoint; optionally model_context_window and model_max_output_tokens, positive integer strings: the resolved model’s context window and output ceiling, absent when the platform has no catalog entry for the model, in which case the executor uses its own defaults; contract 1.27.0: model_input_images, true or false (strings): whether the turn’s model accepts images, from its provider’s model list, absent when unknown; with false the brain sends the model no image of a tool result (screenshots, generate_image previews), only their text). A declaration only states what the executor can use; the platform decides by the executor’s identity: a platform service executor gets what it declares; on a platform-managed pool machine an ACP harness turn gets harness_model by default, without a declaration; a BYO machine gets harness_model only when it declares it, and an undeclared BYO machine gets nothing, so it keeps using the model endpoint configured on it and the platform never overrides that upstream. brain_tools (contract 1.4.0) is handed to a tenant executor only when the session binds this machine as the brain machine and a different machine as the hands machine (brain and hands apart, ADR-0029) and the executor declared brain_tools; the token is bound to the org, the session, the turn, this machine and the brain epoch of the turn (the event epoch of the turn.start that carries it), so a turn started again in a new epoch gets a new token and calls made with the previous epoch’s token are refused. When one machine is both brain and hands nothing is handed (the executor runs its tools itself); a platform service executor and an executor that did not declare brain_tools never get it. Until contract 1.4.0 brain_tools was never handed to a tenant executor. The harness_model token is a bma-model token bound to the turn’s org, session, turn and machine (model_base_url is the machine’s proxy path). Tokens are computed for each turn.start, are valid until the turn ends, and are never stored. platform_tools (contract 2.4.0): for a turn whose brain runs on this machine and runs its own tools here (no tools_mcp_*), platform_tools_mcp_url (the platform tools endpoint of this machine, https://executor.<domain>/v1/machines/\{machine_id\}/mcp), platform_tools_mcp_token and platform_tools_mcp_token_expires_at, handed with AgentTurnConfig.platform_tools only, to an executor that also declares agent.platform_tools, when the turn’s agent enables a platform tool offered to brains on a machine (web_search, web_fetch). The token is bound to the org, the session, the turn, this machine and the turn’s epoch, lives 1 hour and is renewed with tools_token.refresh; with it the endpoint lists and runs only the turn’s platform_tools (any other tool name answers invalid params), so it can be handed to a tenant executor: it never reaches a machine tool. An executor that does not declare it gets neither the credential nor those tools and its turns run as before. |
capabilities.agent.custom_tools | boolean | no | — | The executor runs custom tools defined by the platform agent: it emits agent.custom_tool_use for a call to one and waits for agent.custom_tool_result. The platform sends the definitions of the turn’s agent with every turn.start (AgentTurnConfig.custom_tools, contract 1.7.0) and only to an executor that declares this member. Without it the platform never sends agent.custom_tool_result and answers a user.custom_tool_result for the session with an error; a turn of an agent that has custom tools sent to an executor without it ends failed with session.error (bma_error_code custom_tools_unsupported), never with the tools silently dropped. |
capabilities.agent.host_tools | boolean | no | — | Contract 1.8.0. The executor’s brain offers the model the host tools a turn.start declares (AgentTurnConfig.host_tools) and runs them through the turn’s tools endpoint. Without it the platform does not send host_tools, and a session whose hands machine has computer use gets no computer use tools from this brain. Absent means false. |
capabilities.agent.mcp_tools | boolean | no | — | Contract 1.14.0. The executor’s brain offers the model the MCP tools a turn.start declares (AgentTurnConfig.mcp_tools), runs them through the turn’s tools endpoint under their name, and reports each call as agent.mcp_tool_use and agent.mcp_tool_result (not agent.tool_use). Without it the platform does not send mcp_tools, and a turn of an agent whose mcp_toolset enables tools, sent with tools_mcp_* to this executor, ends failed with session.error (bma_error_code mcp_tools_unsupported), never with the tools silently dropped. An executor that runs its tools itself (no tools_mcp_* in turn.start) is never sent the agent’s MCP tools, declared or not, and its turns run without them. Absent means false. |
capabilities.agent.platform_tools | boolean | no | — | Contract 1.26.0. The executor’s brain offers the model the platform tools a turn.start declares (AgentTurnConfig.platform_tools), runs them through the turn’s tools endpoint under their name, reports each call as agent.tool_use and agent.tool_result, and copies the files of the answer’s structuredContent.files into agent.tool_result.bma_files. Without it the platform does not send platform_tools and the turn runs without them (they are added by the platform, not declared tools of the executor). Absent means false. Contract 2.4.0: on an executor whose brain runs its tools on its own machine, with platform_credentials platform_tools, the tools endpoint of those calls is platform_tools_mcp_url with platform_tools_mcp_token; only these calls leave the machine. |
capabilities.agent.harness | AgentHarnessCapability | no | — | Deprecated: one hosted agent. Use harnesses; an executor that sets both lists this one in harnesses too. |
capabilities.agent.harnesses | array of AgentHarnessCapability | no | — | Every third-party agent the executor can host, by distinct id (for example dsh and claude-code). The platform picks one per turn with AgentTurnConfig.harness; an executor declares only agents that are installed and passed their self-check. |
capabilities.agent.input_skills | boolean | no | — | Accepts exact, input-bound selected skill documents and reports their installed versions in TurnStartResult.effective.input_skill_receipt. Absent or false: do not send selected skills. |
capabilities.agent.working_log | boolean | no | — | Contract 1.22.0. The executor keeps its working log of a session (the events it forwards, its local markers, its copy of the inputs, the highest local sequence the platform acknowledged) on the platform with working_log.read and working_log.append instead of its own disk, so that any instance of a brain fleet can go on with the session (ADR-0083). Informational: the platform serves the methods to the session’s brain whether or not it declares the member. |
capabilities.agent.context_maintenance | boolean | no | — | Contract 1.19.0. Explicit idle session.compact and session.compact_cancel with durable versioned receipts. Absent means unsupported. The executor reserves the session independently of ordinary turns, preserves original history, and publishes replacement context only after durable success. It must not declare this before the complete maintenance contract is implemented. |
capabilities.session_files | SessionFilesCapability | no | — | Executor-owned per-session file layout. The harness derives <root>/<agent_session_id>/uploads (read-only session inputs) and <root>/<agent_session_id>/outputs (deliverables) from it, with agent_session_id as sent in process.start metadata, and uses these real paths in prompts, tool descriptions, write rules and the session files manifest. Absent: the executor has no session files; the harness names no session path to it. There is no fixed /mnt/session/uploads or /mnt/session/outputs layout: the per-session <root>/<agent_session_id>/{uploads,outputs} is the only one, and platform-hosted machines declare root /mnt/session. With the fs capability skills_per_session or copy_views the same tree also holds <root>/<agent_session_id>/skills (the session’s skills view, read-only). Fixed at executor.register: executor.capabilities.update does not change it. Machine-scoped executors only. |
capabilities.session_files.root | string | yes | len: 2.. | Absolute, already-expanded, clean path on the executor host (no ~, no . or .. segments, no trailing /). |
capabilities.remote_brain | RemoteBrainCapability | no | — | Contract 1.4.0. The machine’s owner allows a brain that runs on another machine to use this machine as its hands (platform tools routed here for a session whose brain machine is a different one). Set only by the executor’s local configuration (bmad configuration or SDK Options.RemoteBrain); the platform reads it back and cannot switch it on through any API. Absent or enabled=false: off, which is also what an executor that predates 1.4.0 means. It applies to a BYO (tenant-owned) machine; a platform pool machine does not need it. It does not restrict a platform-hosted brain driving this machine (project authorization is enough there), and a brain and hands on one machine never need it. |
capabilities.remote_brain.enabled | boolean | yes | — | Whether remote brains on other machines may use this machine as hands. |
capabilities.egress | EgressCapability | no | — | Contract 1.9.0. The executor runs the local egress forwarder (docs/architecture/env-networking-egress.md E6): a loopback HTTP proxy that the processes and terminals of a session are pointed at (HTTP(S)_PROXY, NO_PROXY and a trust store that includes the handoff’s ca_bundle), and that tunnels each of their connections to executor.<domain>/v1/machines/{machine_id}/egress?host=<host>&port=<port> (WebSocket, Authorization: Bearer <the session’s egress token>). The platform hands an egress handoff (EgressHandoff, session.assign and turn.start metadata egress) only to an executor that declared forwarder=true; a session that needs egress (limited networking or vault environment variables) on an executor that did not declare it is never run there: its turn ends with session.error bma_error_code egress_unsupported (fail closed). Machine-scoped executors only. Absent or forwarder=false: no forwarder, which is also what an executor that predates 1.9.0 means. |
capabilities.egress.forwarder | boolean | yes | — | Whether the local egress HTTP proxy forwarder is enabled. |
resume | ExecutorResume | no | — | Reattach state sent on reconnect. |
resume.executor_id | string | no | — | Previous executor_id to reattach on reconnect. |
resume.last_connection_id | string | no | — | Previous connection_id being resumed. |
resume.active_sessions | array of string | no | — | List of session IDs still active locally on this executor. |
Result (Output)
| Field | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
executor_id | string | yes | — | Platform-assigned unique executor identifier (exec_...). |
connection_id | string | yes | — | Unique identifier for this WebSocket connection epoch. |
server_time | string | yes | — | Server UTC timestamp (RFC 3339). |
heartbeat_interval_ms | integer | yes | — | Recommended interval in milliseconds between executor.heartbeat calls. |
lease_ttl_ms | integer | yes | — | Lease time-to-live in milliseconds before an unresponsive executor is marked offline. |
max_control_frame_bytes | integer | yes | — | Maximum allowed JSON-RPC frame size in bytes on the control channel. |
max_mcp_frame_bytes | integer | yes | — | Maximum allowed frame size in bytes on raw MCP channels. |
drain | boolean | yes | — | When true, the server is draining and the executor should reconnect cleanly. |
protocol | string | no | enum: bma.executor.v1, bma.executor.v1.1 | Value of both the WebSocket subprotocol and executor.register protocol. A v1.1 server serves v1 executors and never sends them v1.1 methods. |
limits | Limits | no | — | Limits the executor must enforce, advertised in the v1.1 executor.register result (v1.1 §1.3). |
limits.max_inflight_requests | integer | yes | — | Maximum concurrent in-flight JSON-RPC requests. |
limits.max_concurrent_process_reads | integer | yes | — | Maximum concurrent process.read calls. |
limits.max_process_read_bytes | integer | yes | — | Maximum bytes returned per process.read response. |
limits.max_process_write_bytes | integer | yes | — | Maximum bytes accepted per process.write call. |
limits.max_processes_per_session | integer | yes | — | Maximum background processes allowed per session. |
limits.max_artifact_bytes | integer | yes | — | Maximum artifact payload size in bytes. |
Errors
| JSON-RPC Code | Name | When |
|---|---|---|
-32602 | invalid_params | Missing required parameter or invalid field schema. |
-32001 | unauthorized | Invalid or expired executor JWT. |
-32003 | not_found | Target session, process, terminal, or tool call does not exist. |
-32004 | timeout | Operation exceeded its deadline. |
-32009 | executor_busy | Transient backpressure; retry with backoff. |
Wire frame & SDK usage
// Request
{
"jsonrpc": "2.0",
"id": "1",
"method": "executor.register",
"params": {
"protocol": "bma.executor.v1",
"environment_id": "env_01j9example000000000000000",
"executor": {
"name": "my-executor",
"os": "linux",
"arch": "arm64",
"version": "1.0.0"
},
"capabilities": {
"shell": {
"enabled": true
},
"files": {
"enabled": true
},
"mcp": {
"stdio": true,
"http": true,
"max_servers": 1
}
}
}
}
// Response
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"executor_id": "exec_01j9example00000000000000",
"connection_id": "example_connection_id",
"server_time": "2026-11-25T00:00:00Z",
"heartbeat_interval_ms": 1
}
}
// Executor end — call `executor.register` on the platform / harness
const result = await client.call("executor.register", {
"protocol": "bma.executor.v1",
"environment_id": "env_01j9example000000000000000",
"executor": {
"name": "my-executor",
"os": "linux",
"arch": "arm64",
"version": "1.0.0"
},
"capabilities": {
"shell": {
"enabled": true
},
"files": {
"enabled": true
},
"mcp": {
"stdio": true,
"http": true,
"max_servers": 1
}
}
});
# Executor end — call `executor.register` on the platform / harness
result = await client.call("executor.register", {
"protocol": "bma.executor.v1",
"environment_id": "env_01j9example000000000000000",
"executor": {
"name": "my-executor",
"os": "linux",
"arch": "arm64",
"version": "1.0.0"
},
"capabilities": {
"shell": {
"enabled": True
},
"files": {
"enabled": True
},
"mcp": {
"stdio": True,
"http": True,
"max_servers": 1
}
}
})
// Executor end — call `executor.register` on the platform / harness
result, err := bmaexecutor.Calls.ExecutorRegister.Call(ctx, client, bmaexecutor.ExecutorRegisterParams{
Protocol: "bma.executor.v1",
EnvironmentID: "env_01j9example000000000000000",
})
executor.heartbeat
Direction: Executor → Platform · Kind: request · Since: bma.executor.v1
Executor to harness request, sent every heartbeat_interval_ms. Two missed heartbeats expire the lease server-side. drain=true means the executor must stop accepting new sessions and finish current work.
Parameters (Input)
| Name | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
connection_id | string | yes | — | Unique identifier for this WebSocket connection epoch. |
active_sessions | array of string | yes | — | List of active sessions entries. |
load | ExecutorLoad | no | — | Advisory executor load reported with executor.heartbeat. The server does not act on it. |
load.cpu_percent | number | no | — | Value for cpu_percent. |
load.memory_percent | number | no | — | Value for memory_percent. |
Result (Output)
| Field | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
server_time | string | yes | — | Server UTC timestamp (RFC 3339). |
lease_ttl_ms | integer | yes | — | Lease time-to-live in milliseconds before an unresponsive executor is marked offline. |
drain | boolean | yes | — | When true, the server is draining and the executor should reconnect cleanly. |
Errors
| JSON-RPC Code | Name | When |
|---|---|---|
-32602 | invalid_params | Missing required parameter or invalid field schema. |
-32001 | unauthorized | Invalid or expired executor JWT. |
-32003 | not_found | Target session, process, terminal, or tool call does not exist. |
-32004 | timeout | Operation exceeded its deadline. |
-32009 | executor_busy | Transient backpressure; retry with backoff. |
Wire frame & SDK usage
// Request
{
"jsonrpc": "2.0",
"id": "1",
"method": "executor.heartbeat",
"params": {
"connection_id": "example_connection_id",
"active_sessions": [],
"load": {
"cpu_percent": 1.0,
"memory_percent": 1.0
}
}
}
// Response
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"server_time": "2026-11-25T00:00:00Z",
"lease_ttl_ms": 1,
"drain": true
}
}
// Executor end — call `executor.heartbeat` on the platform / harness
const result = await client.call("executor.heartbeat", {
"connection_id": "example_connection_id",
"active_sessions": [],
"load": {
"cpu_percent": 1.0,
"memory_percent": 1.0
}
});
# Executor end — call `executor.heartbeat` on the platform / harness
result = await client.call("executor.heartbeat", {
"connection_id": "example_connection_id",
"active_sessions": [],
"load": {
"cpu_percent": 1.0,
"memory_percent": 1.0
}
})
// Executor end — call `executor.heartbeat` on the platform / harness
result, err := bmaexecutor.Calls.ExecutorHeartbeat.Call(ctx, client, bmaexecutor.ExecutorHeartbeatParams{
ConnectionID: "example_connection_id",
})
executor.token.refresh
Direction: Executor → Platform · Kind: request · Since: bma.executor.v1.1
Executor to harness request. Before the current token expires the executor fetches a new one from POST /v1/machines/{machine_id}/token or POST /v1/environments/{environment_id}/token (legacy aliases POST /api/v1/executors/token, POST /v1/executors/token) with its original credential and sends it on the open control channel. The harness verifies that it names the same executor, scope and machine credential as the connection and moves the connection’s 4001 deadline to the new token’s expiry; nothing else about the connection changes. A rejected token leaves the old deadline in place. A harness without the method answers -32601; the executor then keeps reconnecting on 4001.
Parameters (Input)
| Name | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
token | string | yes | — | Short-lived bearer JWT credential. |
Result (Output)
| Field | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
expires_at | string | yes | — | RFC 3339 time of the new connection deadline. |
Errors
| JSON-RPC Code | Name | When |
|---|---|---|
-32602 | invalid_params | Missing required parameter or invalid field schema. |
-32001 | unauthorized | Invalid or expired executor JWT. |
-32003 | not_found | Target session, process, terminal, or tool call does not exist. |
-32004 | timeout | Operation exceeded its deadline. |
-32009 | executor_busy | Transient backpressure; retry with backoff. |
Wire frame & SDK usage
// Request
{
"jsonrpc": "2.0",
"id": "1",
"method": "executor.token.refresh",
"params": {
"token": "lease_tok_example"
}
}
// Response
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"expires_at": "2026-11-25T00:00:00Z"
}
}
// Executor end — call `executor.token.refresh` on the platform / harness
const result = await client.call("executor.token.refresh", {
"token": "lease_tok_example"
});
# Executor end — call `executor.token.refresh` on the platform / harness
result = await client.call("executor.token.refresh", {
"token": "lease_tok_example"
})
// Executor end — call `executor.token.refresh` on the platform / harness
result, err := bmaexecutor.Calls.ExecutorTokenRefresh.Call(ctx, client, bmaexecutor.ExecutorTokenRefreshParams{
Token: "lease_tok_example",
})
executor.capabilities.update
Direction: Executor → Platform · Kind: notification · Since: bma.executor.v1
Executor to harness notification. It may change capabilities, not the protocol version.
Parameters (Input)
| Name | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
capabilities | Capabilities | yes | — | Executor capability object. The server only sends a method to an executor that advertised its capability; otherwise the executor answers -32012 capability_unavailable. |
capabilities.shell | ShellCapability | no | — | v1 one-shot shell tools. |
capabilities.shell.enabled | boolean | yes | — | Whether built-in one-shot shell (bash) execution is enabled. |
capabilities.files | FilesCapability | no | — | v1 file tools. |
capabilities.files.enabled | boolean | yes | — | Whether built-in file tools (read/write/edit/glob/grep) are enabled. |
capabilities.files.read_roots | array of string | no | — | Allowed filesystem root directories for read operations. |
capabilities.files.write_roots | array of string | no | — | Allowed filesystem root directories for write operations. |
capabilities.mcp | McpCapability | no | — | Environment-origin MCP servers. |
capabilities.mcp.stdio | boolean | no | — | Whether stdio-based local MCP servers are supported. |
capabilities.mcp.http | boolean | no | — | Whether Streamable HTTP / SSE MCP servers are supported. |
capabilities.mcp.max_servers | integer | no | — | Maximum number of concurrent MCP servers supported. |
capabilities.mcp.secret_env | boolean | no | — | The executor accepts transport.secret_env on stdio servers: resolved secret values it injects only into the server process environment, never persisting, logging or echoing them. Without it the server keeps secret: references in env, which the executor rejects. |
capabilities.chrome | boolean | no | — | Whether Chrome browser automation capability is available. |
capabilities.computer_use | boolean | no | — | Whether desktop computer-use tools are available. |
capabilities.display | boolean | DisplayCapability | no | — | v1 boolean or v1.1 DisplayCapability object. |
capabilities.process | ProcessCapability | no | — | v1.1 process.* support. pty, file_transfer, package_install and git_credentials are additive: the harness only sends the matching process.start fields to an executor that set them, and fails the process explicitly otherwise. |
capabilities.process.enabled | boolean | yes | — | Whether managed background process (process.*) methods are enabled. |
capabilities.process.max_processes | integer | no | — | Maximum concurrent background processes allowed. |
capabilities.process.buffer_bytes | integer | no | — | Ring-buffer size in bytes per managed process output stream. |
capabilities.process.pty | boolean | no | — | Accepts process.start io_mode “pty”. |
capabilities.process.file_transfer | boolean | no | — | Accepts process.start file_transfer. |
capabilities.process.git_credentials | boolean | no | — | Accepts process.start git_credentials. |
capabilities.process.package_install | boolean | no | — | Accepts process.start package_install. |
capabilities.artifacts | ArtifactCapability | no | — | v1.1 artifact upload (POST /v1/environments/{environment_id}/artifacts; legacy alias POST /v1/executors/artifacts). Environment-scoped executors only. |
capabilities.artifacts.upload | boolean | yes | — | Whether artifact upload to the platform is supported. |
capabilities.artifacts.max_bytes | integer | no | — | Maximum single artifact upload size in bytes. |
capabilities.terminal | TerminalCapability | no | — | v1.1 terminal.* support. Machine-scoped executors only. |
capabilities.terminal.enabled | boolean | yes | — | Whether interactive PTY terminal (terminal.*) methods are enabled. |
capabilities.terminal.kinds | array of string | no | — | Supported terminal transport kinds. |
capabilities.terminal.max_sessions | integer | no | — | Maximum concurrent interactive terminal sessions. |
capabilities.skills | SkillsCapability | no | — | skill.install support. Machine-scoped executors only. |
capabilities.skills.install | boolean | yes | — | Whether on-demand skill.install is supported. |
capabilities.workspace | WorkspaceCapability | no | — | workspace.backup support and the startup restore of a pending backup. Machine-scoped executors only. |
capabilities.workspace.backup | boolean | yes | — | Whether workspace.backup and startup restore are supported. |
capabilities.agent | AgentCapability | no | — | agent capability. Present with enabled=true when the executor runs a complete agent and accepts turn.start, turn.input, turn.cancel, session.close and interaction.response (and agent.custom_tool_result when custom_tools is true). |
capabilities.agent.enabled | boolean | yes | — | Whether this executor hosts an agent brain loop (turn.*). |
capabilities.agent.models | array of AgentModel | no | — | Models the local agent can run. An empty list means the executor picks its own model and ignores AgentTurnConfig.model. |
capabilities.agent.permission_modes | array of string | no | — | Permission mode ids the local agent understands, for example default, accept_edits, plan, bypass_permissions. The executor defines the ids; the platform only passes one back in AgentTurnConfig.permission_mode. |
capabilities.agent.interaction_kinds | array of string | no | — | Interaction kinds the executor may open with interaction.request. |
capabilities.agent.file_inputs | boolean | no | — | The executor fetches the bytes of the file blocks (file_id) of turn.start and turn.input itself. Declare it only when it can: through the tools endpoint of the turn (tools_mcp_url and tools_mcp_token in turn.start metadata, GET <tools_mcp_url without /mcp>/files/<file_id>/content), or, on a machine daemon token, through the turn input files routes (GET /v1/machines/{machine_id}/sessions/{session_id}/turns/{turn_id}/input_files and …/{file_id}/content, docs/architecture/executor-turn-input-files.md). Together with the agent accepting images (harness.image_inputs) it is what lets the platform accept an image input for the agent: without it the input is refused with 400, with it the platform sends the file blocks and never refuses an image the agent accepts. Absent means false. |
capabilities.agent.input_by_reference | boolean | no | — | Contract 1.7.0. The executor fetches a turn input the platform does not inline: when turn.start or turn.input would serialize to more than 48 KiB (the 64 KiB control frame limit with headroom), its input is a single input_ref block (AgentInputBlock type input_ref: input_id, size_bytes, sha256) instead of the blocks, and the executor reads them with its machine credential: GET /v1/machines/{machine_id}/inputs/{input_id} on the executor domain answers 200 with the AgentInputBlock array the input would have carried (404 unless the input belongs to a session of the credential’s machine; readable until its turn ends). The executor checks size_bytes and sha256 and handles the blocks exactly as if they had come inline. Declare it only when it can make that request. Without it such an input ends its turn: session.error (bma_error_code input_too_large, not retried) and the turn fails; the platform never retries a request that cannot fit. Absent means false. |
capabilities.agent.steering | boolean | no | — | Contract 1.25.0. The local agent takes a turn.input at the running turn’s next step boundary: after the results of the tool calls of its current step and before its next model request, so the input can change what the agent does next in the same turn. When the model answers without a tool call, the agent reads an input that arrived meanwhile before it ends the turn; once it ends the turn it answers a later turn.input -32013 conflict. The platform hands a steering user.message (bma_delivery_mode steering) to the running turn as turn.input only when its brain declares it; otherwise it re-files the message as queued (bma_delivery_reason harness_no_steering) and runs it as a turn of its own. Absent means false. |
capabilities.agent.history_rebuild | boolean | no | — | Contract 2.2.0. When the agent opens a session it has no local state for, it reads the conversation with session.history and rebuilds its context from it before running the turn (answering turn.start with context_rebuilt true when there was a past); it never runs such a turn without that context. The platform forks a session (POST /v1/sessions/{session_id}/fork: a new session that starts with a copy of the conversation) only when the session’s brain runs on an executor that declares it, else 400 fork_unsupported; the fork’s first turn reaches the brain with no local state and the copied conversation in session.history. Absent means false. |
capabilities.agent.max_sessions | integer | no | range: 1.. | Turns the executor runs at once. A turn.start while that many turns are running answers -32009 executor_busy (retryable). A session with no running turn holds no slot; an executor may release the local resources of its least recently used idle sessions and load them again from executor_session_ref on the next turn.start. |
capabilities.agent.turn_resume | boolean | no | — | The executor keeps the state of its turns across a process restart. When it registers again without a session whose turn was running, the platform starts the same turn again in a new event epoch (turn.start with the same turn_id, input_id and executor_session_ref, then the turn.input the turn already received) and the executor continues the turn from its own state. Without it such a turn ends failed (session.error, session.status_idle retries_exhausted) and is not sent again: an executor without that state would run the turn again from its opening input and repeat tool calls whose effects already happened. |
capabilities.agent.platform_credentials | array of string | no | — | Per-turn credentials the executor asks the platform to hand it in turn.start metadata: brain_tools (tools_mcp_url, tools_mcp_token: the session’s tools endpoint) and harness_model (model_base_url, model_token: the session’s model endpoint; optionally model_context_window and model_max_output_tokens, positive integer strings: the resolved model’s context window and output ceiling, absent when the platform has no catalog entry for the model, in which case the executor uses its own defaults; contract 1.27.0: model_input_images, true or false (strings): whether the turn’s model accepts images, from its provider’s model list, absent when unknown; with false the brain sends the model no image of a tool result (screenshots, generate_image previews), only their text). A declaration only states what the executor can use; the platform decides by the executor’s identity: a platform service executor gets what it declares; on a platform-managed pool machine an ACP harness turn gets harness_model by default, without a declaration; a BYO machine gets harness_model only when it declares it, and an undeclared BYO machine gets nothing, so it keeps using the model endpoint configured on it and the platform never overrides that upstream. brain_tools (contract 1.4.0) is handed to a tenant executor only when the session binds this machine as the brain machine and a different machine as the hands machine (brain and hands apart, ADR-0029) and the executor declared brain_tools; the token is bound to the org, the session, the turn, this machine and the brain epoch of the turn (the event epoch of the turn.start that carries it), so a turn started again in a new epoch gets a new token and calls made with the previous epoch’s token are refused. When one machine is both brain and hands nothing is handed (the executor runs its tools itself); a platform service executor and an executor that did not declare brain_tools never get it. Until contract 1.4.0 brain_tools was never handed to a tenant executor. The harness_model token is a bma-model token bound to the turn’s org, session, turn and machine (model_base_url is the machine’s proxy path). Tokens are computed for each turn.start, are valid until the turn ends, and are never stored. platform_tools (contract 2.4.0): for a turn whose brain runs on this machine and runs its own tools here (no tools_mcp_*), platform_tools_mcp_url (the platform tools endpoint of this machine, https://executor.<domain>/v1/machines/\{machine_id\}/mcp), platform_tools_mcp_token and platform_tools_mcp_token_expires_at, handed with AgentTurnConfig.platform_tools only, to an executor that also declares agent.platform_tools, when the turn’s agent enables a platform tool offered to brains on a machine (web_search, web_fetch). The token is bound to the org, the session, the turn, this machine and the turn’s epoch, lives 1 hour and is renewed with tools_token.refresh; with it the endpoint lists and runs only the turn’s platform_tools (any other tool name answers invalid params), so it can be handed to a tenant executor: it never reaches a machine tool. An executor that does not declare it gets neither the credential nor those tools and its turns run as before. |
capabilities.agent.custom_tools | boolean | no | — | The executor runs custom tools defined by the platform agent: it emits agent.custom_tool_use for a call to one and waits for agent.custom_tool_result. The platform sends the definitions of the turn’s agent with every turn.start (AgentTurnConfig.custom_tools, contract 1.7.0) and only to an executor that declares this member. Without it the platform never sends agent.custom_tool_result and answers a user.custom_tool_result for the session with an error; a turn of an agent that has custom tools sent to an executor without it ends failed with session.error (bma_error_code custom_tools_unsupported), never with the tools silently dropped. |
capabilities.agent.host_tools | boolean | no | — | Contract 1.8.0. The executor’s brain offers the model the host tools a turn.start declares (AgentTurnConfig.host_tools) and runs them through the turn’s tools endpoint. Without it the platform does not send host_tools, and a session whose hands machine has computer use gets no computer use tools from this brain. Absent means false. |
capabilities.agent.mcp_tools | boolean | no | — | Contract 1.14.0. The executor’s brain offers the model the MCP tools a turn.start declares (AgentTurnConfig.mcp_tools), runs them through the turn’s tools endpoint under their name, and reports each call as agent.mcp_tool_use and agent.mcp_tool_result (not agent.tool_use). Without it the platform does not send mcp_tools, and a turn of an agent whose mcp_toolset enables tools, sent with tools_mcp_* to this executor, ends failed with session.error (bma_error_code mcp_tools_unsupported), never with the tools silently dropped. An executor that runs its tools itself (no tools_mcp_* in turn.start) is never sent the agent’s MCP tools, declared or not, and its turns run without them. Absent means false. |
capabilities.agent.platform_tools | boolean | no | — | Contract 1.26.0. The executor’s brain offers the model the platform tools a turn.start declares (AgentTurnConfig.platform_tools), runs them through the turn’s tools endpoint under their name, reports each call as agent.tool_use and agent.tool_result, and copies the files of the answer’s structuredContent.files into agent.tool_result.bma_files. Without it the platform does not send platform_tools and the turn runs without them (they are added by the platform, not declared tools of the executor). Absent means false. Contract 2.4.0: on an executor whose brain runs its tools on its own machine, with platform_credentials platform_tools, the tools endpoint of those calls is platform_tools_mcp_url with platform_tools_mcp_token; only these calls leave the machine. |
capabilities.agent.harness | AgentHarnessCapability | no | — | Deprecated: one hosted agent. Use harnesses; an executor that sets both lists this one in harnesses too. |
capabilities.agent.harnesses | array of AgentHarnessCapability | no | — | Every third-party agent the executor can host, by distinct id (for example dsh and claude-code). The platform picks one per turn with AgentTurnConfig.harness; an executor declares only agents that are installed and passed their self-check. |
capabilities.agent.input_skills | boolean | no | — | Accepts exact, input-bound selected skill documents and reports their installed versions in TurnStartResult.effective.input_skill_receipt. Absent or false: do not send selected skills. |
capabilities.agent.working_log | boolean | no | — | Contract 1.22.0. The executor keeps its working log of a session (the events it forwards, its local markers, its copy of the inputs, the highest local sequence the platform acknowledged) on the platform with working_log.read and working_log.append instead of its own disk, so that any instance of a brain fleet can go on with the session (ADR-0083). Informational: the platform serves the methods to the session’s brain whether or not it declares the member. |
capabilities.agent.context_maintenance | boolean | no | — | Contract 1.19.0. Explicit idle session.compact and session.compact_cancel with durable versioned receipts. Absent means unsupported. The executor reserves the session independently of ordinary turns, preserves original history, and publishes replacement context only after durable success. It must not declare this before the complete maintenance contract is implemented. |
capabilities.session_files | SessionFilesCapability | no | — | Executor-owned per-session file layout. The harness derives <root>/<agent_session_id>/uploads (read-only session inputs) and <root>/<agent_session_id>/outputs (deliverables) from it, with agent_session_id as sent in process.start metadata, and uses these real paths in prompts, tool descriptions, write rules and the session files manifest. Absent: the executor has no session files; the harness names no session path to it. There is no fixed /mnt/session/uploads or /mnt/session/outputs layout: the per-session <root>/<agent_session_id>/{uploads,outputs} is the only one, and platform-hosted machines declare root /mnt/session. With the fs capability skills_per_session or copy_views the same tree also holds <root>/<agent_session_id>/skills (the session’s skills view, read-only). Fixed at executor.register: executor.capabilities.update does not change it. Machine-scoped executors only. |
capabilities.session_files.root | string | yes | len: 2.. | Absolute, already-expanded, clean path on the executor host (no ~, no . or .. segments, no trailing /). |
capabilities.remote_brain | RemoteBrainCapability | no | — | Contract 1.4.0. The machine’s owner allows a brain that runs on another machine to use this machine as its hands (platform tools routed here for a session whose brain machine is a different one). Set only by the executor’s local configuration (bmad configuration or SDK Options.RemoteBrain); the platform reads it back and cannot switch it on through any API. Absent or enabled=false: off, which is also what an executor that predates 1.4.0 means. It applies to a BYO (tenant-owned) machine; a platform pool machine does not need it. It does not restrict a platform-hosted brain driving this machine (project authorization is enough there), and a brain and hands on one machine never need it. |
capabilities.remote_brain.enabled | boolean | yes | — | Whether remote brains on other machines may use this machine as hands. |
capabilities.egress | EgressCapability | no | — | Contract 1.9.0. The executor runs the local egress forwarder (docs/architecture/env-networking-egress.md E6): a loopback HTTP proxy that the processes and terminals of a session are pointed at (HTTP(S)_PROXY, NO_PROXY and a trust store that includes the handoff’s ca_bundle), and that tunnels each of their connections to executor.<domain>/v1/machines/{machine_id}/egress?host=<host>&port=<port> (WebSocket, Authorization: Bearer <the session’s egress token>). The platform hands an egress handoff (EgressHandoff, session.assign and turn.start metadata egress) only to an executor that declared forwarder=true; a session that needs egress (limited networking or vault environment variables) on an executor that did not declare it is never run there: its turn ends with session.error bma_error_code egress_unsupported (fail closed). Machine-scoped executors only. Absent or forwarder=false: no forwarder, which is also what an executor that predates 1.9.0 means. |
capabilities.egress.forwarder | boolean | yes | — | Whether the local egress HTTP proxy forwarder is enabled. |
Result (Output)
Notification — no JSON-RPC response frame.Errors
| JSON-RPC Code | Name | When |
|---|---|---|
-32602 | invalid_params | Missing required parameter or invalid field schema. |
Wire frame & SDK usage
{
"jsonrpc": "2.0",
"method": "executor.capabilities.update",
"params": {
"capabilities": {
"shell": {
"enabled": true
},
"files": {
"enabled": true
},
"mcp": {
"stdio": true,
"http": true,
"max_servers": 1
}
}
}
}
// Executor end — send `executor.capabilities.update` notification
await client.notify("executor.capabilities.update", {
"capabilities": {
"shell": {
"enabled": true
},
"files": {
"enabled": true
},
"mcp": {
"stdio": true,
"http": true,
"max_servers": 1
}
}
});
# Executor end — send `executor.capabilities.update` notification
await client.notify("executor.capabilities.update", {
"capabilities": {
"shell": {
"enabled": True
},
"files": {
"enabled": True
},
"mcp": {
"stdio": True,
"http": True,
"max_servers": 1
}
}
})
// Executor end — send `executor.capabilities.update` notification
err := bmaexecutor.Notifications.ExecutorCapabilitiesUpdate.Notify(ctx, client, bmaexecutor.ExecutorCapabilitiesUpdateParams{})
executor.drain
Direction: Platform → Executor · Kind: request · Since: bma.executor.v1
Harness to executor request. The executor stops accepting new sessions, finishes current work, and reports active_sessions.
Parameters (Input)
| Name | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
reason | string | yes | — | Human-readable reason for the stop, cancel, or close action. |
deadline_ms | integer | no | range: 1.. | Operation deadline in milliseconds. |
Result (Output)
| Field | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
accepted | boolean | yes | — | Whether the request was accepted. |
active_sessions | array of string | yes | — | List of active sessions entries. |
Errors
| JSON-RPC Code | Name | When |
|---|---|---|
-32602 | invalid_params | Missing required parameter or invalid field schema. |
-32001 | unauthorized | Invalid or expired executor JWT. |
-32003 | not_found | Target session, process, terminal, or tool call does not exist. |
-32004 | timeout | Operation exceeded its deadline. |
-32009 | executor_busy | Transient backpressure; retry with backoff. |
Wire frame & SDK usage
// Request
{
"jsonrpc": "2.0",
"id": "1",
"method": "executor.drain",
"params": {
"reason": "example_reason",
"deadline_ms": 1
}
}
// Response
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"accepted": true,
"active_sessions": []
}
}
// Executor end — handle `executor.drain` sent by the platform / harness
client.onRequest("executor.drain", async (params) => {
return {
"accepted": true,
"active_sessions": []
};
});
# Executor end — handle `executor.drain` sent by the platform / harness
@client.on_request("executor.drain")
async def handle(params: dict) -> dict:
return {
"accepted": True,
"active_sessions": []
}
// Executor end — handle `executor.drain` sent by the platform / harness
bmaexecutor.Requests.ExecutorDrain.Handle(client, func(ctx context.Context, params bmaexecutor.ExecutorDrainParams) (bmaexecutor.ExecutorDrainResult, error) {
return bmaexecutor.ExecutorDrainResult{
Accepted: true,
}, nil
})
executor.close
Direction: Bidirectional · Kind: notification · Since: bma.executor.v1
Either side notification, followed by WebSocket close code 1000 or 1001.
Parameters (Input)
| Name | Type | Required | Enum / Constraints | Description |
|---|---|---|---|---|
reason | string | yes | — | Human-readable reason for the stop, cancel, or close action. |
Result (Output)
Notification — no JSON-RPC response frame.Errors
| JSON-RPC Code | Name | When |
|---|---|---|
-32602 | invalid_params | Missing required parameter or invalid field schema. |
Wire frame & SDK usage
{
"jsonrpc": "2.0",
"method": "executor.close",
"params": {
"reason": "example_reason"
}
}
// Executor end — send `executor.close` notification
await client.notify("executor.close", {
"reason": "example_reason"
});
# Executor end — send `executor.close` notification
await client.notify("executor.close", {
"reason": "example_reason"
})
// Executor end — send `executor.close` notification
err := bmaexecutor.Notifications.ExecutorClose.Notify(ctx, client, bmaexecutor.ExecutorCloseParams{
Reason: "example_reason",
})