read_full_buf
Read the complete content of an open Neovim buffer, capturing unsaved edits. Get every line prefixed with its line number to review the full file state.
Instructions
Read the full content of a Neovim buffer. Read-only; reads from Neovim's in-memory buffer, which may differ from the file on disk if there are unsaved changes.
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 when you need to see the entire file. Use read_buf_range
instead when you only need a specific section — it returns less data.
Returns {lines, total_lines}. lines is a list of strings, each prefixed with its 1-based line number (e.g. "1: first line").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |