render_pages
Convert PDF pages to PNG or JPEG images, one file per page, with optional page ranges, DPI settings, and password support for protected documents.
Instructions
Save pages as PNG or JPEG image files, one per page (all pages if pages omitted).
dpi: 36-600 (default 150). format: "png" (default) or "jpeg". Files are named _p001.png in output_dir (default: a _pages folder next to the PDF). Copy-protected PDFs need their owner password.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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>"
},
"name": "render_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| pages | No | ||
| format | No | png | |
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | Yes | ||
| files | Yes | ||
| pages | Yes | ||
| format | Yes | ||
| output_dir | Yes |