crop_figure
Extract a rectangular region from a PDF page as an image using page and bounding-box coordinates; locate figures with list_figures first.
Instructions
Crop a rectangular region from a PDF page and return it as an image.
Use ``list_figures`` first to discover figure locations, then call
this tool with the bounding-box coordinates.
Args:
item_key: The Zotero item key.
page: Page number (0-indexed).
x0: Left edge of the crop box (PDF points).
y0: Top edge of the crop box (PDF points).
x1: Right edge of the crop box (PDF points).
y1: Bottom edge of the crop box (PDF points).
dpi: Rendering resolution (default 300).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_key": "<item_key>",
"page": "<page>",
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>"
},
"name": "crop_figure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| dpi | No | ||
| page | Yes | ||
| item_key | Yes |