← Files EmpirioLabs AIARCHIVED FILE

skills/document-reader/SKILL.md

810 Bytes · Nov 21, 2026 · 00:11 UTC

↓ Download file

---
name: document-reader
description: Read a PDF or a scanned page from a link and return its text as Markdown. Use for OCR, tables, forms, invoices and long documents.
---
# Read a document

1. Get the document as a public link to a PDF or an image.
2. Choose a document model: call `list_models` with `endpoint` set to `/v1/ocr`, unless the user names one.
3. Call `read_document` with the `model` and the link as `document`: a PDF goes in as `document_url` and an image as `image_url`. Set `pages` to read part of it. Pages count from zero, so `"0,2-4"` is the first page and the third to the fifth.
4. A long document returns a job id: call `get_job` with it, and again until the pages are ready.
5. Answer the user's question from the text, or return the Markdown when they asked for the content itself.

SHA-256: a2db87edf5558e188a570027a011ae7e17a3328744124c27cc7ac3710108c3ea