run_batch_commands
Execute multiple shell or PowerShell commands in one batch call to reduce permission prompts. Run commands sequentially with optional stop-on-error and per-command timeout.
Instructions
Executes multiple shell/PowerShell commands sequentially in a single tool call. Reduces permission prompts from N to 1. Parameters: commands: List of shell command strings to execute in order. working_dir: Working directory for all commands. stop_on_error: If True, halts execution if any command returns non-zero exit code. timeout_per_command: Max seconds per command (default: 180s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| commands | Yes | ||
| working_dir | No | ||
| stop_on_error | No | ||
| timeout_per_command | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |