run_command
Execute shell commands on configured remote hosts, subject to access policies that allow inspection or block modifications on read-only servers.
Instructions
Run a shell command on a host, subject to that host's access policy.
Read-only hosts accept only inspection commands; anything that appears to modify state is refused before it reaches the server.
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": {
"host": "<host>",
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Configured host name | |
| command | Yes | Shell command to execute on the host | |
| timeout | No | Seconds before the command is killed | |
| working_dir | No | Directory to cd into first |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |