Methods for dispatching and reporting built-in or MCP tool calls (tool.call, tool.result, tool.cancel, tool.progress), returning caller-executed custom tool results (agent.custom_tool_result), and coordinating approval or user-input interactions (interaction.request, interaction.response, interaction.cancel).

Methods overview

tool.call

Direction: Platform → Executor · Kind: request · Since: bma.executor.v1 Harness to executor request. The executor acknowledges the dispatch and reports the outcome separately with tool.result. A duplicate tool_call_id is acknowledged without re-execution. A tool the executor does not serve is -32012 with data.capability “tool:<name>”.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage

tool.result

Direction: Executor → Platform · Kind: request · Since: bma.executor.v1 · Idempotent by: tool_call_id Executor to harness request, idempotent by tool_call_id and retried until accepted. Large output is uploaded first (POST /v1/environments/{environment_id}/artifacts; legacy alias POST /v1/executors/artifacts) and referenced by an artifact content block.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage

tool.cancel

Direction: Platform → Executor · Kind: request · Since: bma.executor.v1 Harness to executor request. The executor kills the process group; canceled=false when the call is unknown or already finished.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage

tool.progress

Direction: Executor → Platform · Kind: notification · Since: bma.executor.v1 Executor to harness notification, optional.

Parameters (Input)

Result (Output)

Notification — no JSON-RPC response frame.

Errors

Wire frame & SDK usage

interaction.request

Direction: Executor → Platform · Kind: request · Since: bma.executor.v1.1 · Capability: agent · Idempotent by: interaction_id Executor to harness request (capability agent). The harness opens one platform agent interaction (the same request on desktop, mobile and integrations) and answers with interaction.response later. Idempotent by interaction_id. A permission request references the agent.tool_use event in tool_use_id, sent earlier with evaluated_permission ask. The executor keeps local authority; it may still deny, and it treats expires_at as a local deny. An interaction_id of the form appr_ plus 24 lower-case hex digits (the deterministic approval id) is adopted as the platform interaction id; the interactions API, its card and the session stream use it, platform_interaction_id equals it, and a repeat of it (after an executor restart too) names the same interaction, never a second card. The same id for another tool_use_id (within one executor epoch) or another kind is refused with error conflict (-32013) and the stored interaction is left unchanged. An interaction_id of any other form is only the executor’s key; the platform assigns its own id (int_…) and returns it.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage

interaction.response

Direction: Platform → Executor · Kind: request · Since: bma.executor.v1.1 · Capability: agent · Idempotent by: interaction_id Harness to executor request (capability agent). Sent once the platform interaction resolves, expires or is canceled; retried with the same interaction_id until answered. The first answer wins; a repeat or an unknown interaction answers accepted=false.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage

agent.custom_tool_result

Direction: Platform → Executor · Kind: request · Since: bma.executor.v1.1 · Capability: agent · Idempotent by: tool_use_id Harness to executor request (capability agent; sent only to an executor that declared agent.custom_tools). The executor emitted agent.custom_tool_use (its event_id is the tool_use_id) and waits; the platform sends the result the user’s application submitted with user.custom_tool_result. Only the first result of a call counts: the platform accepts one per tool_use_id and the executor answers a repeat, an unknown tool_use_id or a call it no longer waits for with accepted=false. Idempotent by tool_use_id: the platform retries the same result until the executor answers, also on a new connection. Timeout: the executor owns the wait. When its own limit passes it ends the call with a failed agent.tool_result (tool_use_id of the call, is_error true), continues the turn, and answers a later result with accepted=false; the platform stops accepting results for that call. Cancel: turn.cancel ends the waiting call as canceled with the turn, and the platform drops results it has not delivered yet for a turn that ended.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage

interaction.cancel

Direction: Executor → Platform · Kind: request · Since: bma.executor.v1.1 · Capability: agent · Idempotent by: interaction_id Executor to harness request (capability agent). The executor no longer needs the answer, for example the user answered in the local UI (resolved_locally) or the turn was canceled. The harness cancels the platform interaction so every client dismisses it. Idempotent by interaction_id.

Parameters (Input)

Result (Output)

Errors

Wire frame & SDK usage