extract_blocks
Extract structured content blocks from a local PDF in reading order, each with text, page, bounding box, and type. Repeated headers and footers are excluded by default.
Instructions
A local PDF as blocks, in reading order, with where each one came from.
Each block has kind (paragraph, heading, list_item, table_cell, header,
footer), text, page (0-based), bbox ([x0, y0, x1, y1] in PDF
points, origin bottom-left) and confidence: the probability of the
learned model that decided the block's kind, or null where no model did --
null means unknown, not low. Headings carry level, list items level
and ordinal, table cells row, column, row_span,
column_span and header.
pages_needing_vision lists the pages in the window whose text layer is
missing: nothing this returns for them is the page's content.
Args: path: The PDF's absolute path on this machine. pages: The 0-based pages to return; omit for the whole document, up to the server's page limit. include_furniture: Keep running heads and page numbers (kinds header and footer); they are left out by default because they repeat on every page and crowd out the content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| include_furniture | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |