ssh_exec_script
Executes a multi-line bash script on a remote host via SSH, passing the script through stdin to bash -s. Use for complex server tasks, diagnostics, or batch operations.
Instructions
Execute a multi-line bash script on a connected remote host. The script is passed via stdin to bash -s.
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": {
"connectionId": "<connectionId>",
"script": "<script>"
},
"name": "ssh_exec_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Multi-line bash script to execute | |
| timeout | No | Script timeout in milliseconds (default: 60000) | |
| connectionId | Yes | The connection ID |