send_command
Send a command to an interactive terminal session and get clean text output. Automatically appends newline; dangerous commands require prior confirmation.
Instructions
Send a command/input to an interactive session and wait for output. Appends newline automatically. Returns clean text output (no ANSI codes). If a dangerous command is detected, you must use confirm_dangerous_command first.
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>",
"input": "<input>"
},
"name": "send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID to send input to | |
| input | Yes | The command/input to send (newline appended automatically) | |
| timeout_ms | No | Max time to wait for output (ms) | |
| max_output_chars | No | Override max output characters for this call |