powershell_run
Execute PowerShell commands without hanging by disabling prompts, encoding input to avoid escaping problems, and enforcing timeouts.
Instructions
Run a PowerShell command without hanging. Uses -NonInteractive -NoProfile flags to prevent prompts and speed up startup. Command is Base64-encoded to avoid escaping issues.
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": "powershell_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Defaults to the server start directory. | |
| command | Yes | PowerShell command or script block to run | |
| timeout | No | Timeout in ms. Defaults to 10000. Max 30000. |