executeCommand
Runs shell commands and returns their output, enabling git operations, script execution, and system command tasks for MCP or REST clients.
Instructions
Executes a shell command and returns the output. Useful for git operations, running scripts, or system commands.
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": "executeCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (default: current directory) | |
| args | No | Command arguments (e.g., ["status"]) | |
| command | Yes | Command to execute (e.g., "git", "npm") | |
| timeout | No | Timeout in milliseconds (default: 30000) |