anymd

v8.5.19
io.github.SylphxAI/anymd Checked 12 hours ago Published 5 days ago

Any 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]).

ParameterTypeDescription
operation *
sources *array
citationsarray | nullcite_check only: 1–100 quotes with required page and bounding_box; exactly one PDF source.
expected_source_sha256string | nullcite_check and video operations: fail if the admitted source's SHA-256 differs from this hexadecimal value.
include_imageboolean | null
include_metadataboolean | null
languagesarray | null
max_output_charsinteger | null
max_pagesinteger | null
max_pixels_per_pageinteger | null
max_regionsinteger | null
normalization
ocrLocal OCR engine for ocr_pages: auto, vlm, or tesseract. Omit to use the configured command provider.
profilestring | nullstructure only: fast (default), quality, or research (adds safety, trust, accessibility).
sample_pagesinteger | null
scalenumber | null
timelinevideo_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_msinteger | null
timestamps_msarray | nullrender_frame only: playback timestamps in integer milliseconds (at most twenty). Returns decoded frame metadata with the actual decoded timestamp.
transcriptboolean | nullvideo_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.

ParameterTypeDescription
source *stringFile path or http(s) URL.
formatstring | nulljson (default) or tree.
imagesstring | nullEmbedded images: none (default) or refs. Match this option in node reads.
ocrOCR image-only pages; false by default. Accepts booleans or auto/vlm/tesseract.
revisionsstring | nullWord revisions: markup (default), accept or reject. Match node reads.
timelineLocal 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.

ParameterTypeDescription
source *stringFile 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.
cursorstring | nullContinue a previous read with the cursor from its last line.
download_asr_modelboolean | nullImplies 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…
imagesstring | nullImages 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 ![caption](absolute path) plu…
max_tokensinteger | nullToken budget (default 20000). Longer documents stop at a unit boundary and end with a cursor.
nodestring | nullRead a section id returned by outline; repeat node with a continuation cursor.
ocrLocal 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-…
pagesstring | nullPages (PDF), slides, sheets, or chapters to read, e.g. "1-5,8". Default: all.
revisionsstring | nullTracked changes and comments in Word (DOCX) files. "markup" (default) shows them as CriticMarkup: {++inserted++}, {--deleted--}, {~~old~>new~~}, {==commented==}{>>Author (date): comment<<}, each chang…
timelineLocal 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.
transcriptboolean | nullTranscribe 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…