pdf_to_jpg
Convert PDF pages to JPEG images with configurable DPI and page ranges. Specify input file, output directory, and select specific pages for conversion.
Instructions
Render PDF pages as JPEG images.
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_jpg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution in DPI (default 150) | |
| file | Yes | Absolute path to the PDF file | |
| pages | No | Page ranges like "1-3,5" (default: all pages) | |
| output_dir | No | Output directory (default: same as input) |