cited_screenshot
Render a PDF page as a PNG with highlighted bounding boxes around extracted text. Optionally highlight only matching phrases to verify extraction or locate content visually.
Instructions
Render a single PDF page as a PNG with bounding-box highlights drawn over every extracted text item (or only items matching search_phrase).
Returns JSON: { "page_num", "width_px", "height_px", "items_highlighted", "image_base64" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Screenshot resolution in DPI. Default 150. | |
| pdf_path | Yes | Absolute path to the PDF file. | |
| page_number | No | Page to render (1-based). | |
| search_phrase | No | If given, only highlight text items matching this phrase. | |
| highlight_color_rgb | No | Highlight colour as 'R,G,B' (0-255 each). Default '255,100,0' (orange). | 255,100,0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |