run_shell_command
Executes PowerShell commands on Windows and returns stdout, stderr, exit code, signal, and timeout or truncation flags, with configurable working directory, timeout, and output limits.
Instructions
Execute commands using PowerShell on Windows (PowerShell-only). Returns stdout, stderr, exit code, signal, and flags for timeout/truncation.
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": {
"command": "<command>"
},
"name": "run_shell_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| command | Yes | PowerShell command/script to execute | |
| timeoutMs | No | Timeout in ms (max 10 minutes) | |
| maxOutputBytes | No | Max output bytes per stream (max 2MB) |