cli_batch
Runs multiple CLI commands in sequence, stopping at the first failure unless continue_on_error is set, to replay exported project scripts.
Instructions
Run several CLI commands in order (stops at the first KO unless continue_on_error). Ideal for replaying project_export_script output.
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": {
"project_id": "<project_id>",
"commands": "<commands>"
},
"name": "cli_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Persist at the end | |
| timeout | No | Seconds per command | |
| commands | Yes | CLI lines | |
| project_id | Yes | Project id | |
| allow_unsafe | No | Permit commands outside the safe list | |
| continue_on_error | No | Keep going after KO |