pdf_fetch
Fetches a PDF from a URL and converts its content to markdown text. Supports page ranges and custom headers, falling back to HTML markdown if the URL isn't a PDF.
Instructions
Fetch a PDF URL and return its text content as markdown.
Falls back to HTML markdown if the URL does not return a PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of a PDF document | |
| pages | No | Page range to extract, e.g. '1-5' or '3'. Default: all pages. | |
| headers | No | Optional HTTP headers (e.g. Authorization) | |
| max_chars | No | Maximum characters in output |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |