run
Execute shell commands and retrieve their output, enabling terminal automation and script execution directly from MCP.
Instructions
Execute a shell command and return output
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (optional) | |
| command | Yes | Shell command to execute | |
| timeout | No | Timeout in milliseconds (default: 30000) |