render_crop
Render a specified region of a PDF page as a local PNG image for evidence extraction. Provide document ID, page, and coordinates to generate a cropped image file.
Instructions
Render one PDF evidence rectangle to a local PNG artifact.
Coordinates use PDF points (72 points per inch). This tool returns a path and metadata, never the image bytes.
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": {
"document_id": "<document_id>",
"page": "<page>",
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>"
},
"name": "render_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| dpi | No | ||
| page | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||