crop_local_figure
Crop a rectangular figure region from a local PDF page into an image, using coordinates found with list_local_figures.
Instructions
Crop a rectangular region from any local PDF page as an image.
Use ``list_local_figures`` first to find figure locations.
Args:
file_path: Path to the PDF (absolute, ~-relative, or relative to LOCAL_PDF_DIR).
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": {
"file_path": "<file_path>",
"page": "<page>",
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>"
},
"name": "crop_local_figure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| dpi | No | ||
| page | Yes | ||
| file_path | Yes |