clear_highlights
Remove MCP-added highlights from a Neovim buffer without affecting syntax or LSP highlights. Specify an open file path to clear highlights added by highlight_range or highlight_ranges. Safe to call even with no highlights.
Instructions
Remove all MCP highlights from a Neovim buffer. Only removes
highlights added by highlight_range or highlight_ranges — does
not affect syntax highlighting, LSP highlights, or other plugins.
Does not modify buffer content. Safe to call even if no highlights
are present (returns {cleared: true} either way).
file: path relative to Neovim's cwd (as shown in get_state buffers).
The buffer must already be open in Neovim; returns an error otherwise.
Use this to clean up highlights after an annotation workflow.
Use highlight_range or highlight_ranges to add highlights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |