run_sequence
Execute multiple shell commands in sequence, capturing variables from previous steps for use in later commands. Set working directory, per-command timeout, and stop-on-error.
Instructions
Execute multiple shell commands in sequence. Supports variable capture ($PREV, $STEP{n}).
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": {
"commands": "<commands>"
},
"name": "run_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (default: home) | |
| commands | Yes | List of commands to execute in order | |
| timeout_ms | No | Per-command timeout in ms (default 30000) | |
| stop_on_error | No | If true (default), stops when a command fails. |