skim_open
Open large files without reading the full text: returns a compact skeleton with expandable anchor IDs. Optionally search to locate relevant parts in one call.
Instructions
Open a large file and return a compact skeleton + expandable anchor ids (not the full text).
Returns handle, report (token counts + compression ratio), skeleton (read this), and anchors
(ids you can expand). Use instead of reading a whole large file when you only need parts.
Collapsed bodies are NOT in the skeleton - expand the anchor when the answer needs the body.
Pass query to also get matches (which lines/anchors contain it) in the same call,
saving a skim_search round-trip when you already know what you're looking for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | No |