execute_command
Execute Unix/macOS terminal commands through a controlled interface with security features for AI assistants.
Instructions
Execute a Unix/macOS terminal command.
Args: command: The command to execute session_id: Optional session ID for permission management
Returns: A dictionary with command output and status
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 | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||