execute_command
Execute shell commands on remote hosts via SSH or on the current machine, with configurable environment variables.
Instructions
Execute commands on remote hosts or locally (This tool can be used for both remote hosts and the current machine)
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 |
|---|---|---|---|
| env | No | Environment variables | |
| host | No | Host to connect to (optional, if not provided the command will be executed locally) | |
| command | Yes | Command to execute. Before running commands, it's best to determine the system type (Mac, Linux, etc.) |