read
Convert PDFs, Office files, EPUB, HTML, CSV, images, audio/video, URLs, and directories into clean Markdown with page markers and continuation cursors.
Instructions
Read any document as clean Markdown: PDF, Word (DOCX), PowerPoint (PPTX), Excel (XLSX/XLS/ODS), CSV, EPUB, HTML or a web URL, Markdown/text, images (metadata + OCR), audio/video (metadata, chapters, subtitles). Pages/slides/sheets carry style markers for citation. Long documents stop at max_tokens (default 20000) and end with a cursor to continue; choose pages with pages: "1-5,8". A directory returns its readable files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | Local OCR: auto, vlm, or tesseract. Auto uses the installed doc-VLM engine and weights (`anymd setup ocr` installs both, an explicit opt-in), otherwise tesseract. vlm without that setup returns a one-line setup notice. No automatic downloads. Boolean false disables; true retains automatic OCR. | |
| node | No | Read a section id returned by outline; repeat node with a continuation cursor. | |
| pages | No | Pages (PDF), slides, sheets, or chapters to read, e.g. "1-5,8". Default: all. | |
| cursor | No | Continue a previous read with the cursor from its last line. | |
| images | No | Images embedded inside PDFs, DOCX, PPTX and EPUB files. "refs" (default) saves each meaningful raster image once to the anymd cache and marks its place in the Markdown as  plus an <!-- image: WxH, page N --> comment, so you can open the file yourself; logos, icons and repeated headers are skipped. "none" leaves images out. Standalone image files are not affected. | |
| source | Yes | File path, http(s) URL, or directory. PDF, DOCX, PPTX, XLSX/XLS/ODS, CSV/TSV, EPUB, HTML, Markdown/text, images, audio/video, SRT/VTT. A directory returns the list of readable files. | |
| timeline | No | Local video only: read this bounded playback window as deterministic timeline sections. end_ms is required; the window is half-open, at most ten minutes and twenty scenes. | |
| revisions | No | Tracked changes and comments in Word (DOCX) files. "markup" (default) shows them as CriticMarkup: {++inserted++}, {--deleted--}, {~~old~>new~~}, {==commented==}{>>Author (date): comment<<}, each change followed by its author and date. "accept" gives the text with every change accepted and "reject" the text with every change rejected, both without comments. A document with no tracked changes or comments reads the same either way. | |
| max_tokens | No | Token budget (default 20000). Longer documents stop at a unit boundary and end with a cursor. | |
| transcript | No | Transcribe audio/video locally with bundled transcribe-cpp and Qwen3-ASR-1.7B Q8. Needs preinstalled SHA-256 pinned weights (~2.2 GB), unless download_asr_model is true. Audio stays local. Default false. | |
| download_asr_model | No | Implies transcript. Downloads pinned Qwen3-ASR-1.7B Q8 weights (~2.2 GB) into the anymd cache. Downloads only when explicitly enabled. Legacy download_whisper_model is accepted as an alias. Default false. |