vterm_send
Sends typed text, Enter, and special keys to a focused visible terminal window without waiting for output; use the read tool afterward to capture the response.
Instructions
Send keystrokes to a visible terminal window, exactly as if typed on a keyboard. Relies on the window having focus (true right after vterm_spawn, or after the user last interacted with it — does not forcibly steal focus from other windows). Does not wait for a response — call vterm_read afterward.
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": {
"pid": "<pid>"
},
"name": "vterm_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process id returned by vterm_spawn | |
| text | No | Literal text to type (e.g. a command or a chat message). | |
| enter | No | Press Enter after the text. | |
| special | No | Special keys to send in order, e.g. ["UP","UP"] to navigate a menu, before any text/enter. |