read_full_buf
Retrieve the complete content of an open Neovim buffer, including unsaved changes, by specifying its file path. Returns all lines with 1-based line numbers.
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 |