execute
Run commands on a remote SSH server and retrieve output, stderr, and exit status. Specify session, command, optional input, and timeout.
Instructions
Execute command on SSH server
Args:
session_id: Session ID
command: Command to execute
stdin: Input string to provide to the command, defaults to None
timeout: Command timeout in seconds, defaults to 60 seconds
Returns:
Command output (stdout and stderr) and exit status
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_id": "<session_id>",
"command": "<command>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin | No | ||
| command | Yes | ||
| timeout | No | ||
| session_id | Yes |