PDF to JPG / PNG images
pdf_to_imagesRender PDF pages as images (one JPG or PNG file per page).
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": {
"file": "<file>"
},
"name": "pdf_to_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | 72 = web, 150 = standard, 300 = print quality. | |
| file | Yes | The PDF. | |
| pages | No | Pages to render: "all", or numbers and ranges such as "1-3, 5, 8-end" ("end" = last page). | all |
| format | No | jpg | |
| jpg_quality | No | JPG quality in percent (JPG only). | |
| transparent | No | Transparent background (PNG only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Facts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf). | |
| note | No | Anything the user should know about the result. | |
| text | No | Extracted text (pdf_to_text, ocr_pdf). | |
| files | Yes | Result files. Download them before expires_at; pass file_id to another tool to chain. |