sage_read_file
Reads files using compression: small files returned exactly, large files as outline with head and line references. Saves context by reducing output size.
Instructions
Read a file with SAGE compression: small files exact, large files as outline + head with line references. Prefer this over cat/type/Get-Content to save context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return exact full content | |
| path | Yes | File path to read | |
| lines | No | Optional exact range START:END, e.g. 120:220 | |
| symbols | No | Return only the symbol outline | |
| max_tokens | No | Token budget for large files |