screenshot_pdf
Render PDF pages as PNG images (base64-encoded) for use in visual processing or display. Set DPI and choose specific pages to control resolution and scope.
Instructions
Render PDF pages as PNG images (base64-encoded).
Returns JSON list of: { "page_num", "width_px", "height_px", "image_base64" }
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": {
"pdf_path": "<pdf_path>"
},
"name": "screenshot_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Screenshot resolution in DPI. Default 150. | |
| pdf_path | Yes | Absolute path to the PDF file. | |
| page_numbers | No | Comma-separated pages to render, e.g. '1,2'. Omit for all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |