run_command
Execute a command in a PTY session and wait for its completion using sentinel detection.
Instructions
Run a command in a PTY session and wait for completion. Uses sentinel-based detection to know when command finishes.
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": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command to run | |
| timeout | No | Timeout in seconds to wait for command completion (default: 1800) | |
| session_id | Yes | The session ID returned by start_session |