cli_execute
Run tasks on multiple CLI providers (Claude, Gemini, Codex) with built-in retry, circuit breaker, and fallback to ensure reliable execution.
Instructions
Execute a task on a CLI (Claude, Gemini, or Codex) inline with automatic retry, circuit breaker, and fallback.
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": {
"cli": "<cli>",
"prompt": "<prompt>"
},
"name": "cli_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | Yes | Target CLI provider | |
| cwd | No | Working directory for execution | |
| mode | No | Execution mode | generate |
| prompt | Yes | Prompt to send to the CLI | |
| allow_fallback | No | Allow fallback to other CLIs on failure | |
| timeout_seconds | No | Global timeout budget in seconds (covers all retries and fallbacks) |