smcreader
v0.1.5SMC Reader (Save My Context Reader): pull-model reading of large tool outputs for Claude Code.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
reader_open
Open a document in a persistent haiku-powered reader WITHOUT loading it into your context. Use for: large files (logs, long sources, datasets), long command outputs (pass as {text}), anything you will question repeatedly. Do NOT use for small files you are about to Edit (use Read — you need exact bytes). Returns id + stats + head/tail preview; then interrogate with reader_ask, verify exact values with reader_peek.
| Parameter | Type | Description |
|---|---|---|
briefing * | string | Why you are opening this and what matters — the reader prioritizes by it. Name what to watch for (errors? a function? specific numbers?). |
path | string | Absolute file path. Exactly one of path|text. |
text | string | Inline text to open (e.g. a big command output you want kept out of your context). |
reader_ask
Ask the haiku reader a question about an open document. The reader remembers the dialog: follow-up questions are cheap. Default answer (format "lines"): a short direct answer + the document lines that answer it, VERBATIM from disk (exact bytes — fit for Edit), ~6–9 s. Several questions to one document at once run in parallel. Errors/anomalies you did not ask about are NOT listed in lines — ask for them explicitly ("what looks suspicious here?") or use format "prose" — a connected explanation with line citations and a NOTICED section (slower).
| Parameter | Type | Description |
|---|---|---|
id * | string | Reader id from reader_open (ctx_...). |
question * | string | One specific question per ask. |
format | string | Answer format (default "lines"): "lines" — relevant document lines verbatim + short note; "prose" — explanation with citations. |
reader_peek
Verbatim numbered slice of an open document — no LLM, exact bytes from disk. Use to ground-check a reader_ask claim or pull an exact value/snippet. Max 400 lines per call.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
end | integer | Alias of end_line. |
end_line | integer | Last line, inclusive. Required (alias: end). |
start | integer | Alias of start_line. |
start_line | integer | First line, 1-based. Required (alias: start). |
reader_close
Close a reader and delete its spilled raw file. Call when done — max 10 readers may be open.
| Parameter | Type | Description |
|---|---|---|
id * | string |
reader_list
List open readers (id, size, briefing, ask count). Use when unsure what is open or before opening near the limit of 10.