Run SSH read only
run_ssh_read_onlyExecute SSH commands on remote Linux hosts in read-only mode, blocking system modifications. Automatically adds --no-pager to systemctl commands to prevent hanging.
Instructions
Only run commands that would not make changes to the system. sudo is not allowed.
When using systemctl, make sure to add --no-pager to prevent the command from hanging.
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_ssh_read_only"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||