ssh_session_send
Runs a command in an existing SSH session by ID, reusing the saved working directory, environment, and shell history for context-aware execution.
Instructions
Runs one command inside an already-open session identified by its session ID, reusing the persisted working directory, environment, and history of that shell. Mutates remote state like any shell command and is not idempotent; cd and export update the saved context for subsequent calls. Commands run through a bash-style shell (Unix-oriented). The security policy of the underlying server is enforced, so readonly or restricted servers may refuse. Default timeout is 30000 ms.
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": {
"session": "<session>",
"command": "<command>"
},
"name": "ssh_session_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute in the session | |
| session | Yes | Session ID from ssh_session_start | |
| timeout | No | Command timeout in milliseconds (default: 30000) |