send_input
Types text or raw key sequences into a running pty session, appending Enter by default, to control CLI processes and long-running tasks.
Instructions
Type into a running session's terminal (it runs on a pty): a line of text followed by Enter, or with raw: true exact keys such as q, \x03 (Ctrl+C) or \e[A (up arrow).
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": {
"id": "<id>",
"text": "<text>"
},
"name": "send_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id. | |
| raw | No | Send `text` as keys, without Enter, interpreting escapes: `\r` (Enter), `\n`, `\t`, `\e` (Esc), `\\`, `\xHH` (any byte, e.g. `\x03` = Ctrl+C, `\e[A` = up arrow). | |
| text | Yes | Text typed into the session's terminal. Enter is appended unless `raw` is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| stderr | Yes | ||
| stdout | Yes |