Extraer texto de un PDF
read_pdfExtract text from a PDF at a direct URL, optionally by page range, to analyze Ecuador open government data. Scanned PDFs return empty because OCR is not supported.
Instructions
Extract text from a PDF at a direct URL (max 5 MB, 20 pages per call; pages selects a range). No OCR: scanned PDFs come back empty.
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": "read_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Direct URL to the PDF file | |
| pages | No | Page range, 1-indexed (e.g. "3", "1-5", "1,4,9"). | |
| format | No | text summary (default) or json structured result. | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| metadatos | Yes | ||
| url_fuente | No |