Get PDF Page Images
get_pdf_page_imagesUse this when you need to visually inspect PDF pages to identify content that cannot be detected from text alone — for example, pages containing a logo, a photograph, a watermark, a QR code, or any visual element. Returns rendered JPEG screenshots as images you can see. Returns at most 10 pages per call. ALWAYS start from start_page=1 and paginate through the ENTIRE document: check 'has_more' in structuredContent — if true, call again with start_page=next_start_page. Repeat until has_more is false. You must finish scanning all pages before answering the user's question or performing any action (e.g. deletion). Requires: pip install pymupdf
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": {
"session_id": "<session_id>",
"job_id": "<job_id>"
},
"name": "get_pdf_page_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of pages to render per call (capped at MAX_IMAGE_PAGES). | |
| job_id | Yes | Job ID of the PDF to render. | |
| session_id | Yes | Session ID that the job belongs to. | |
| start_page | No | 1-based page number to start from (default 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| showing | Yes | Inclusive 1-based page range rendered in this call. | |
| has_more | Yes | ||
| page_count | Yes | ||
| session_id | Yes | ||
| next_start_page | Yes |