mdfi

v0.1.1
io.github.TopTop-Oy/mdfi-connect Checked 29 minutes ago Published 18 days ago

Read PDFs, scans and Office files page by page, with quality flags and CSV table export.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_document

Read a local PDF, Word, PowerPoint, Excel, HTML, email or image file as clean text. Handles scans and complex tables, and marks anything uncertain. Prefer this over reading such files directly.

ParameterTypeDescription
path *string

read_pages

Read specific pages of a document already opened with read_document. Pass pages (e.g. "3,7,9-11") or section (a heading from the outline), not both. Free: never charges.

ParameterTypeDescription
document_id *string
pages
section

export_table

Write one table from a document already opened with read_document to a CSV file in the working directory (default ./mdfi-tables/<file-stem>-<table-id>.csv, UTF-8 with a header row). The table id comes from the table's label in the page text, e.g. [table p13-t1 — …]. A table with notes gets a .notes.txt file beside the CSV; never overwrites unless overwrite=true. Only once the document is ready. Free: never charges.

ParameterTypeDescription
document_id *string
table *string
overwriteboolean
path