run_script
Execute PowerShell or batch scripts within the workspace boundary, with optional arguments and configurable timeout.
Instructions
Execute a PowerShell (.ps1) or batch (.bat/.cmd) script file.
Resolves the script path relative to the current working directory. The script must exist within the configured workspace boundary.
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": {
"path": "<path>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Optional arguments to pass to the script. | |
| path | Yes | Path to the script file (.ps1, .bat, or .cmd). | |
| timeout | No | Maximum execution time in seconds. Default: 120. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||