Open file
nvim_open_fileOpen files in Neovim using horizontal, vertical, or tab splits, and get buffer info to manage the session.
Instructions
Open a file in Neovim, optionally in a split or new tab, and return its buffer info.
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": {
"path": "<path>"
},
"name": "nvim_open_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to open. | |
| split | No | How to open it. Default 'none' (replace current window). |