run_command
Execute an allowlisted command in a workspace directory to automate tasks or run scripts without shell metacharacters or pipes.
Instructions
Run an allowlisted command in the workspace
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_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory relative to the workspace root (defaults to the workspace) | |
| command | Yes | Single allowlisted command to run (no shell metacharacters or pipes) |