exec
Run shell commands on a remote Linux machine via SSH, returning stdout, stderr, and exit code.
Instructions
Execute a shell command on a remote session. Returns stdout, stderr, exit_code.
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": "exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute | |
| timeout | No | Timeout in seconds (default 30) | |
| session_id | Yes | Session ID |