remote_exec
Run named recipes on configured SSH hosts, allowing only pre-authorized commands. Restrict remote execution to allowlisted content for security.
Instructions
Run a NAMED recipe on a configured SSH host (never free-form shell). Host and recipe must exist in connections config; remote argv must be on the host allowlist.
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>",
"recipe": "<recipe>"
},
"name": "remote_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH host profile name | |
| repo | No | Repository name | |
| format | No | toon (default) | json | |
| params | No | JSON object of recipe params, e.g. {"lines":"100","path":"/var/log/nginx/error.log"} | |
| recipe | Yes | Recipe name on that host | |
| timeout_seconds | No | Timeout (default 30, max 120) |