pdf_to_png
Convert a PDF file into separate PNG images, one per page, for viewing slide decks and documents with language models.
Instructions
Convert a PDF file to individual PNG images (one per page).
Useful for making slide deck pages visible to LLMs for review or editing.
Args: pdf_path: Path to the source PDF file output_directory: Directory to write PNGs into. Defaults to a folder beside the PDF named _pages/ dpi: Render resolution (default 200 -- good balance of quality and size)
Returns: Dictionary with output directory, list of page image paths, and page count
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": {
"pdf_path": "<pdf_path>"
},
"name": "pdf_to_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| pdf_path | Yes | ||
| output_directory | No |