Observe Neovim
nvim_observeRetrieve the rendered Neovim screen as plain-text rows along with cursor, mode, size, and window metadata, enabling reliable substring matching for UI verification.
Instructions
Return the rendered Neovim screen as plain text rows, plus cursor, mode, size, current buffer/window and floating-window geometry. The screen is the source of truth; the metadata explains it. Rows are plain text with no cursor markers or line numbers, so substring matching is reliable. Resets the nvim_observe_diff baseline.
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_observe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session id returned by nvim_launch or nvim_attach. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | ||
| mode | Yes | ||
| rows | Yes | ||
| buffer | Yes | ||
| cursor | Yes | ||
| floats | Yes | ||
| screen | Yes | ||
| window | Yes | ||
| sessionId | Yes |