extract_images
Extract embedded PDF images as PNG content to view figures, charts, or photos, scaled to 1600 px and limited per call.
Instructions
Extract the embedded images of a PDF as PNG image content, scaled to at most 1600 px on the longer side, 10 per call by default and 8 MB in total. Soft masks are not returned as images. Use this when you need to see figures, charts, or photos embedded in a PDF document. Read-only.
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": {
"filename": "<filename>"
},
"name": "extract_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Optional page number to extract images from. If omitted, extracts from all pages. | |
| filename | Yes | The document filename to extract images from | |
| max_images | No | Maximum images to return (default 10, at most 50). The description counts every image found. |