fleet_run
Delegate a prompt to an agent CLI (claude, codex, or agy) on a local or remote fleet machine, returning its response.
Instructions
Delegate a single prompt to another agent CLI (claude, codex, or agy) running headless on a fleet machine (wsl=local, draydev=dev VM, ec2=prod). Returns the agent's response. Use to farm a subtask to a different model, or to run work on a remote box. codex/agy can edit files and run commands in their sandbox; scope prompts accordingly.
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": {
"agent": "<agent>",
"prompt": "<prompt>"
},
"name": "fleet_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory on the target machine | |
| agent | Yes | Which agent CLI to invoke | |
| model | No | Optional model override (agent-specific id) | |
| prompt | Yes | The prompt/task for the agent | |
| machine | No | Which machine to run on (default draydev — the worker VM) | |
| timeout_ms | No | Optional timeout in ms (default 180000) |