Send to terminal
nvim_terminal_sendSend input to a Neovim terminal buffer, appending a carriage return by default to submit the line. Use enter=false for raw keys or control characters.
Instructions
Send input to an open terminal buffer. By default a carriage return is appended so the line is submitted; set enter=false to send raw keys (e.g. control characters).
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": {
"bufnr": "<bufnr>",
"data": "<data>"
},
"name": "nvim_terminal_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text to send. | |
| bufnr | Yes | Terminal buffer number (from nvim_open_terminal/list). | |
| enter | No | Append a carriage return. Default true. |