Check a worker's environment before dispatch
preflight_workerProves a worker environment before dispatch by running probe commands under the same workspace, sandbox, and guard, returning a probe ID for create_worker or immediate acceptance results.
Instructions
Prove the environment before spending a worker. probe_commands starts a short probe worker under the same workspace, sandbox and guard and returns its id: read it with get_worker include preflight, then pass it as preflight_id to create_worker with the same arguments. acceptance alone runs those commands in cwd now and returns their results.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cwd": "<cwd>"
},
"name": "preflight_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| model | No | ||
| title | No | ||
| limits | No | {max_run_ms, max_total_ms} | |
| runner | No | ||
| context | No | {files: [{path}] abs paths to read, contracts: [binding statements]} | |
| sandbox | No | {mode: read-only | workspace-write (default) | danger-full-access, network_access, writable_roots: [abs dirs], allowed_commands: [commands; trailing * = prefix], forbid: [paths or commands]} | |
| workspace | No | {kind: git_worktree (default) | read_only_in_place | scratch | in_place_write, base_ref, setup: {links: [{path, source}], submodules, commands} run first, in_place_authorization, external_outputs: [{path}]} | |
| acceptance | No | {commands, timeout_ms}: shell commands the supervisor runs in the worktree after the worker exits; all must exit 0 | |
| owned_paths | No | Required with probe_commands | |
| probe_commands | No | Commands the probe must run | |
| reasoning_effort | No |