Attach to Neovim
nvim_attachAttach to a running Neovim instance as an additional UI, allowing you to observe and interact with the editor without terminating the user's session.
Instructions
Attach as an additional UI to an already-running Neovim instance. The instance belongs to the user: nvim_close will refuse to terminate it. Note that Neovim sizes the screen to the smallest attached UI, so the requested size can shrink what the user sees.
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": {
"address": "<address>"
},
"name": "nvim_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Requested screen width. | |
| rows | No | Requested screen height. | |
| address | Yes | RPC endpoint of a running Neovim, as printed by `nvim --listen`: a Unix socket path (/tmp/nvim.sock) or a Windows named pipe (\\.\pipe\nvim.1234.0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | ||
| mode | Yes | ||
| rows | Yes | ||
| address | Yes | ||
| sessionId | Yes |