get_pdf_layout_text
Extract text and physical coordinates from a PDF page in Zotero. Returns each text line with its bounding box for precise annotation placement.
Instructions
提取 PDF 指定页面的文本及物理坐标。
返回 JSON,每个文本行包含 text 和 rect [x0, y0, x1, y1](Zotero PDF 坐标系)。 可以直接将 rect 传给 create_pdf_annotation 使用。
Args: item_id: Zotero PDF 附件的 itemID(数字),或 PDF 文件的绝对路径 page_number: 页码(从 0 开始)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| page_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |