Send input to Neovim
nvim_inputQueue Neovim key sequences as if typed by a human to trigger commands and edits, then use nvim_wait to ensure the screen updates before verifying.
Instructions
Send a key sequence to Neovim. Returns as soon as the keys are queued, not when the screen has updated: follow with nvim_wait before observing, otherwise the observation races the redraw.
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": {
"sessionId": "<sessionId>",
"keys": "<keys>"
},
"name": "nvim_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key sequence in Neovim notation, e.g. "ihello<Esc>", "<C-n>", "gg", "<leader>ff". Sent through nvim_input, so mappings and pending state behave exactly as for a human. | |
| sessionId | Yes | Session id returned by nvim_launch or nvim_attach. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| sessionId | Yes | ||
| bytesWritten | Yes |