Read a project file by path
read_fileRead any Galley Typst project file by exact path to retrieve its live replicated text for inspection. Binary files return structured metadata instead of content.
Instructions
Returns the live replicated text of any project file by EXACT path (as listed by list_files — no normalization, no globbing). Read-only. Files over 2097152 UTF-8 bytes are refused with an error, never truncated. A BINARY file (image/PDF) returns structured metadata { kind: "binary", path, hash, size, mime } instead of text — its bytes are not available through this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exact file path as returned by list_files, e.g. /notes.typ. |