OCR images and PDFs
ocr_images_and_pdfsExtract text from images and scanned PDF pages by URL with open source OCR; returns per-page text, word and line counts, and confidence, and reads existing PDF text layers directly.
Instructions
Read text from images and scanned PDF pages by web address with open source OCR. Returns one row per image or page with the text, word and line counts, and a confidence score. PDF pages that already hold text are read from that text.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ocr_images_and_pdfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Web addresses of PNG, JPEG, GIF, WebP, BMP, or TIFF images, or PDF files, up to 30 MB each. The address must answer without a login. In Clay, put the column in a one item list. | |
| language | No | Language of the text: eng (default), deu, fra, spa, nld, ita, or por. One language per run; run files in another language as a separate run. | |
| max_files | No | Files to read in this run, up to 1,000. Default 100. | |
| page_layout | No | auto (default) finds columns and blocks, which suits letters, articles, and scans. block reads the page as one block of text. sparse finds scattered text, which suits receipts, forms, signs, and screenshots. | |
| max_charge_usd | No | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. | |
| max_pages_per_file | No | Pages to read per PDF, from page 1, up to 100. Default 10. This caps the charge per file. | |
| use_pdf_text_layer | No | yes (default): a PDF page that already holds text is read from that text, charged as page-text, which is cheaper and exact. no: every page is read by OCR and charged as page-ocr. |