client.tools.<name>.handle and the harness end calls it with session.tools.<name>.call. A handler receives that tool’s input (a call missing a required member fails before the handler runs) and returns text, content blocks, a tool result or, for bash, a bash result. Registering a handler advertises the shell or files capability; throwing ToolError reports is_error: true to the model, any other error is outcome: "failed".
Generated from bma-executor-sdk 1.12.2 and its contract (
contracts/bma/executor, protocol bma.executor.v1.1). Install, credentials and quick starts are on the bma-executor-sdk overview; the protocol itself is described in Executor Protocol.Tool slot (executor end)
The generic slot behind everyclient.tools.<name>; the tool sections show it with each tool’s input type.
Tool slot (harness end)
The generic entry behind everysession.tools.<name>; it sends tool.call and waits for tool.result, like callTool.
ToolContext
What a handler learns about the call it serves, andprogress for tool.progress updates.
BashResult
A finished command, rendered as stdout, stderr andexit_code: N; output beyond 48 KiB (or marked truncated) is cut to a preview.
ToolError
A tool-level error reported to the model (outcome succeeded,is_error: true), the same role as the Anthropic SDK ToolError.
Built-in tools
bash
bash input: run command with a login shell. InputBashInput
Executor end
read
read input: return lines of a text file. InputReadInput
Executor end
write
write input: create or replace a file. InputWriteInput
Executor end
edit
edit input: replace the single occurrence of old_string. InputEditInput
Executor end
glob
glob input: list paths matching pattern. InputGlobInput
Executor end
grep
grep input: search file lines with a regular expression. InputGrepInput
Executor end
list_files
list_files input. InputListFilesInput
Executor end
computer_observe
computer_observe input. The result is a screenshot (an image content block) with the list of the screen’s windows as text. pid and window_id (both or neither, contract 1.8.0) observe one window of that list. region (contract 1.17.0) zooms: the result is that part of the screenshot at full screen resolution. InputComputerObserveInput
Executor end
computer_action
computer_action input, after Anthropic’s computer-use tool over the ComputerAction enum. Coordinates are pixels of the last computer_observe screenshot (window-local with pid and window_id). The members after display are contract 1.8.0 (additive). duration and actions are contract 1.17.0: action batch with actions runs those steps in order, stops at the first failure and ends with a screenshot of the last step’s target (the screen, or its window). InputComputerActionInput
Executor end