anymd
v8.5.19Any file → clean Markdown for AI agents: PDF, Office, EPUB, HTML, images, audio/video.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect
Document and media evidence when Markdown is not enough. video_timeline (bounded scene/cue timeline) and render_frame (actual decoded frames), and cite_check (quote/location support, not semantic truth), are anymd Pro; PDF operations: inspect (page facts, metadata), render_page (PNG images), extract_regions (crop bounding boxes), ocr_pages / analyze_regions (configured OCR or vision provider), structure (JSON with document map, elements, geometry; profile quality|research adds trust and accessibility reports), compare (page-level diff of sources[0] vs sources[1]).
| Parameter | Type | Description |
|---|---|---|
operation * | ||
sources * | array | |
citations | array | null | cite_check only: 1–100 quotes with required page and bounding_box; exactly one PDF source. |
expected_source_sha256 | string | null | cite_check and video operations: fail if the admitted source's SHA-256 differs from this hexadecimal value. |
include_image | boolean | null | |
include_metadata | boolean | null | |
languages | array | null | |
max_output_chars | integer | null | |
max_pages | integer | null | |
max_pixels_per_page | integer | null | |
max_regions | integer | null | |
normalization | ||
ocr | Local OCR engine for ocr_pages: auto, vlm, or tesseract. Omit to use the configured command provider. | |
profile | string | null | structure only: fast (default), quality, or research (adds safety, trust, accessibility). |
sample_pages | integer | null | |
scale | number | null | |
timeline | video_timeline only (required there): half-open playback window with required end_ms, at most ten minutes and twenty detected-cut scenes. caption only samples one frame per scene through a user-config… | |
timeout_ms | integer | null | |
timestamps_ms | array | null | render_frame only: playback timestamps in integer milliseconds (at most twenty). Returns decoded frame metadata with the actual decoded timestamp. |
transcript | boolean | null | video_timeline only: also attach timed ASR cues from preinstalled local Qwen3-ASR weights. Never downloads models. Default false. |
outline
Return a document heading tree with stable node ids, title paths, page/slide/chapter ranges and Markdown byte ranges. PDF bookmarks or detected headings, Word headings, PowerPoint slides, EPUB chapters and headings, HTML and Markdown. format json (default) or tree. Pass a node id to read to fetch that section.
| Parameter | Type | Description |
|---|---|---|
source * | string | File path or http(s) URL. |
format | string | null | json (default) or tree. |
images | string | null | Embedded images: none (default) or refs. Match this option in node reads. |
ocr | OCR image-only pages; false by default. Accepts booleans or auto/vlm/tesseract. | |
revisions | string | null | Word revisions: markup (default), accept or reject. Match node reads. |
timeline | Local video only: outline this bounded playback window from metadata (cuts, chapters, subtitles). No ASR, OCR or captions run. |
read
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 <!-- page N --> 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | 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. |
cursor | string | null | Continue a previous read with the cursor from its last line. |
download_asr_model | boolean | null | 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 fa… |
images | string | null | 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  plu… |
max_tokens | integer | null | Token budget (default 20000). Longer documents stop at a unit boundary and end with a cursor. |
node | string | null | Read a section id returned by outline; repeat node with a continuation cursor. |
ocr | 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-… | |
pages | string | null | Pages (PDF), slides, sheets, or chapters to read, e.g. "1-5,8". Default: all. |
revisions | string | null | Tracked changes and comments in Word (DOCX) files. "markup" (default) shows them as CriticMarkup: {++inserted++}, {--deleted--}, {~~old~>new~~}, {==commented==}{>>Author (date): comment<<}, each chang… |
timeline | 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. | |
transcript | boolean | null | 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 fal… |
search
Search documents for text: one file, many files, whole directories (recursive, .gitignore aware), or URLs, across every format read supports. Returns each hit as file + page/slide/sheet + a snippet with the match in bold. mode auto (default) finds the exact phrase and falls back to BM25-ranked passages when there is none; literal or ranked force one. Narrow directories with glob, e.g. "*.pdf".
| Parameter | Type | Description |
|---|---|---|
query * | string | Text to find. |
case_sensitive | boolean | null | |
context_chars | integer | null | Snippet context characters on each side (default 80). |
glob | string | null | Only search files matching this glob inside directories, e.g. "*.pdf" or "reports/**". |
max_results | integer | null | Maximum hits to return (default 20). |
mode | string | null | auto (default): exact phrase, falling back to ranked passages when nothing matches. literal: exact phrase only. ranked: BM25 over the query words. |
sources | array | Files, directories (searched recursively, .gitignore respected), or URLs. Default: the current directory. |
whole_word | boolean | null |