내장 도구마다 타입이 지정된 슬롯이 있어, executor 쪽은 client.tools.<name>.handle로 처리하고 harness 쪽은 session.tools.<name>.call로 호출합니다. 핸들러는 그 도구의 입력을 받고(필수 멤버가 없는 호출은 핸들러 실행 전에 실패), 텍스트·콘텐츠 블록·도구 결과, bash라면 bash 결과를 반환합니다. 핸들러를 등록하면 shell 또는 files 기능이 선언되며, ToolError를 던지면 모델에 is_error: true로 보고되고 그 밖의 오류는 outcome: "failed"가 됩니다.
bma-executor-sdk 1.12.2과 그 계약(contracts/bma/executor, 프로토콜 bma.executor.v1.1)에서 생성했습니다. 설치, 자격 증명, 빠른 시작은 bma-executor-sdk 개요를, 프로토콜 자체는 Executor Protocol을 참고하세요.

도구 슬롯(executor 쪽)

모든 client.tools.<name> 뒤의 일반 슬롯. 각 도구 섹션에서 그 도구의 입력 타입으로 보여 줍니다.

도구 슬롯(harness 쪽)

모든 session.tools.<name> 뒤의 일반 항목. callTool처럼 tool.call을 보내고 tool.result를 기다립니다.

ToolContext

핸들러가 처리 중인 호출에 대해 알 수 있는 정보와, tool.progress 업데이트를 보내는 progress.

BashResult

끝난 명령으로 stdout, stderr, exit_code: N으로 렌더링되며, 48 KiB를 넘는(또는 잘림으로 표시된) 출력은 미리보기로 잘립니다.

ToolError

모델에 보고되는 도구 수준 오류(outcome은 succeeded, is_error: true)로, Anthropic SDK의 ToolError와 같은 역할입니다.

내장 도구

bash

bash 입력: 로그인 셸로 명령을 실행합니다. 입력 BashInput executor 쪽
harness 쪽
예제

read

read 입력: 텍스트 파일의 줄을 반환합니다. 입력 ReadInput executor 쪽
harness 쪽
예제

write

write 입력: 파일을 만들거나 교체합니다. 입력 WriteInput executor 쪽
harness 쪽
예제

edit

edit 입력: old_string이 한 번 나오는 곳을 교체합니다. 입력 EditInput executor 쪽
harness 쪽
예제

glob

glob 입력: pattern과 일치하는 경로를 나열합니다. 입력 GlobInput executor 쪽
harness 쪽
예제

grep

grep 입력: 정규식으로 파일의 줄을 검색합니다. 입력 GrepInput executor 쪽
harness 쪽
예제

list_files

list_files 입력. 입력 ListFilesInput executor 쪽
harness 쪽
예제

computer_observe

computer_observe 입력. 결과는 스크린샷(image content block)이며, 화면의 창 목록이 텍스트로 함께 제공됩니다. pid와 window_id(둘 다 지정하거나 둘 다 생략, 계약 1.8.0)는 그 목록의 창 하나를 관찰합니다. region(계약 1.17.0)은 확대합니다. 결과는 스크린샷의 해당 영역을 화면의 전체 해상도로 돌려준 것입니다. 입력 ComputerObserveInput executor 쪽
harness 쪽

computer_action

computer_action 입력으로, Anthropic의 computer-use 도구를 따라 ComputerAction 열거형을 기반으로 합니다. 좌표는 마지막 computer_observe 스크린샷의 픽셀입니다(pid와 window_id를 지정하면 창 내부 좌표). display 이후의 멤버는 계약 1.8.0(추가적)입니다. duration과 actions는 계약 1.17.0입니다. actions가 있는 동작 배치는 그 단계를 순서대로 실행하고, 첫 번째 실패에서 멈추며, 마지막 단계의 대상(화면 또는 그 창)의 스크린샷으로 끝납니다. 입력 ComputerActionInput executor 쪽
harness 쪽