get_page_image
Convert PDF pages to PNG images for text extraction, diagram analysis, or content sharing. Specify page number and resolution to render PDF content as visual files.
Instructions
Render a single PDF page as a PNG image.
Args:
filename: Path to a PDF file.
page: Page number (1-indexed).
dpi: Image resolution. Default 150 (good balance of readability and size).
output: "base64" returns the image inline as MCP image content.
"file" writes to a temp file and returns the path.
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": {
"filename": "<filename>"
},
"name": "get_page_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| page | No | ||
| dpi | No | ||
| output | No | base64 |