Pagespool for Docling

v1.0.3
com.pagespool/docling Checked 1 day ago Published 1 day ago

Hosted Docling: convert PDF, Office files and images to Markdown and JSON, with OCR and tables.

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

convert_document Convert a document to Markdown with Docling

Convert a document up to 25 MB and 200 pages to Markdown with Docling: OCR, tables, headings and reading order. Pass the file as base64 in `content_base64`, or as a download link in `file`, and its name in `filename`. Returns `task_id` and `task_status`. The conversion runs in the background, and a long PDF can take several minutes: `get_conversion` returns its state for the `task_id`, and the result once `task_status` is `success`. Costs 1 credit per PDF page converted (2 with `force_ocr`) and 10 credits per other file, refunded if the conversion fails. Requires an account (an API key or si…

ParameterTypeDescription
filename *stringThe file name with its extension, such as report.pdf. Docling reads PDF, Word, PowerPoint, Excel, HTML, Markdown, CSV and images.
content_base64The file content, base64-encoded. Up to 25 MB before encoding.
fileobjectThe file as a download link, instead of `content_base64`: set `download_url` to a public https URL of the file.
force_ocrbooleanReplace a PDF's text layer with OCR text. Doubles the price of a PDF.
page_rangeOptional. [first, last] pages to convert, 1-based.

get_conversion Check a Docling conversion

Check a conversion you started with `convert_document`. Returns `task_id` and `task_status` (`pending`, `started`, `success` or `failure`). On `success` it includes the `markdown` when it is under 100 KB, otherwise a `result_url` to download the full result with your API key (free). On `failure` it includes `error`, one sentence with the reason. Results are deleted 7 days after submission. Requires an account (an API key or sign-in). Credits: free. This tool is not metered.

ParameterTypeDescription
task_id *stringThe task_id returned by convert_document.