fetch_and_parse_pdf
Fetches a PDF from a URL and extracts text, renders pages as images, or combines both with automatic mode selection for AI-ready content.
Instructions
Fetches a PDF from a URL and parses it. Supports multiple modes: text extraction, image rendering, hybrid (text + images), or auto-detection. Use text mode for text-heavy documents, images mode for visual content, hybrid for mixed content, or auto to let the tool decide based on document analysis.
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": {
"url": "<url>"
},
"name": "fetch_and_parse_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | DPI for image rendering (72-300, default 150) | |
| url | Yes | URL of the PDF to fetch and parse | |
| mode | No | Extraction mode: text (text only), images (render all pages), hybrid (text + key images), auto (intelligent detection) | auto |
| pages | No | Specific page numbers to render (only used in images/hybrid mode) | |
| maxPages | No | Maximum number of pages to render as images |