run_command
Execute PowerShell commands in a new process, returning stdout, stderr, and exit code. Ideal for short, stateless tasks up to 5 minutes.
Instructions
Execute a command in a new PowerShell (pwsh 7) process. Stateless — no state persists between calls.
NOT for long-running tasks. Hard cap is 300 seconds (5 minutes); there is no background mode. Do NOT use for: installers (Ollama, VS, .NET SDK, etc.), large builds, package managers that may exceed 5 minutes (npm install on cold cache, pip install torch, etc.), dev servers, or anything interactive.
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>",
"timeout": "<timeout>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | Yes | Timeout in SECONDS (not milliseconds). Integer between 1 and 300. | |
| working_directory | No | %TEMP%\\pwsh-exec |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |