zotero_get_page_layout
Detect figure and table regions on a PDF page and return their normalized bounding boxes for precise area annotation placement.
Instructions
Detect candidate figure/table regions on a PDF page and return their normalized bounding boxes, so area annotations can be placed on detected content instead of guessed positions. ALWAYS call this before zotero_create_area_annotation unless exact coordinates are already known. Returns each region's bounding box (x, y, width, height in [0, 1]), source (image/drawing/table/merged), associated caption (e.g. 'Figure 3: ...'), confidence level, and a ready-to-paste zotero_create_area_annotation call. Note: detection is geometric — boxes cover the graphical core of a figure/table; text labels inside figures or unruled table headers may fall outside the box. Confidence reflects caption matching, not box completeness. attachment_key: PDF attachment key — NOT the parent item key (use zotero_get_item_children to find attachments). page: 1-indexed page number (page 1 is the first page). Scope: PDFs only — EPUB attachments are NOT supported. Read-only: works in both local and web API modes. Example: zotero_get_page_layout(attachment_key='NHZFE5A7', page=7).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_key | Yes | PDF attachment key (e.g., "NHZFE5A7") | |
| page | Yes | 1-indexed PDF page number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |