pdf_to_images
Renders PDF pages into PNG or JPEG images in a chosen folder at a set DPI, with page range and overwrite options. Use it to convert PDFs into image files for viewing or OCR.
Instructions
Render PDF pages to PNG or JPEG files in a folder, at a chosen DPI. Needs ghostscript.
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": {
"input_path": "<input_path>",
"output_dir": "<output_dir>"
},
"name": "pdf_to_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| pages | No | ||
| format | No | png | |
| overwrite | No | ||
| input_path | Yes | ||
| output_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | Yes | ||
| count | Yes | ||
| format | Yes | ||
| images | Yes | ||
| output_dir | Yes |