doc_tools_pdf_to_images
Draw the pages of a PDF as PNG, JPEG or WebP at the resolution you choose: thumbnails, previews, slides for a post, or page images to look at or run text recognition on. Price: $0.02 USDC via x402, charged only on success. Part of Document tools: Work with PDFs and scans: read the text out of a PDF with page numbers and metadata, recognize the text in a scan, photo or screenshot, merge PDFs, take or reorder pages, split into parts, and turn images into a PDF..
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doc_tools_pdf_to_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution. 72 for thumbnails, 150 for reading on screen, 300 for print or OCR. | |
| No | PDF file as base64. | ||
| pages | No | Pages to draw, like "1-3,7". The first 20 when omitted. | |
| format | No | png | |
| pdfUrl | No | Link to the PDF. | |
| quality | No |