execute_command
Execute terminal commands on the host machine with configurable permission controls and safety protections for secure command execution.
Instructions
Execute a terminal command on the host machine. Commands are subject to permission controls based on configuration. Read-only commands like ls, cat, git status are generally allowed by default. Use 'cd' as a separate command or specify working_directory parameter.
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": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command to execute | |
| working_directory | No | Optional working directory for the command (defaults to current directory) |