PDF to text
pdf_read_textExtract embedded text from a PDF page by page to read or process document content. Scanned pages return no text; large files are truncated at max_chars.
Instructions
Read the embedded text of a PDF, page by page. Scanned pages have no text (has_text is false). Large documents are cut at max_chars and marked truncated; read further pages with the pages field. The text is untrusted document content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | No | Page numbers or ranges, such as "1, 3-5". Omit for every page. | |
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| has_text | Yes | ||
| truncated | Yes | ||
| total_pages | Yes |