Close a Neovim session
nvim_closeTerminate a Neovim instance launched by this server and release its session. Attach-mode sessions remain active.
Instructions
Terminate a Neovim instance this server launched and release its session. Refuses attach-mode sessions: that instance belongs to the user, and attach sessions are released when the server shuts down.
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>"
},
"name": "nvim_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session id returned by nvim_launch or nvim_attach. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| closed | Yes | ||
| sessionId | Yes |