Run Ex command
nvim_commandExecute Neovim Ex commands (e.g., :write, :bnext, :vsplit) and retrieve captured output for direct control of the editor.
Instructions
Execute an Ex command (e.g. :write, :bnext, :vsplit foo.txt) and return its captured output.
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": {
"command": "<command>"
},
"name": "nvim_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The Ex command, without the leading colon. |