remote_bash_execute
Run shell commands on a remote host over SSH, preserving working directory, environment variables, and aliases across calls using the same connection.
Instructions
Execute a command on a remote host via an established SSH connection.
Shell state (working directory, environment variables, aliases) persists across calls to the same connection_id.
Args: command: Shell command to execute. connection_id: Which connection to use. If omitted, uses the most recently active connection. timeout: Max seconds to wait for the command to complete (default 120).
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": "remote_bash_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| connection_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |