Extract PDF text
pdf_text_extractFree, read-only. Extract plain text from a PDF given as a URL (max 20 MB) or inline base64 (max 5 MB), one of the two. Returns text, cut at maxChars with a marker. Text-layer PDFs only: scans return little or nothing (no OCR). Layout and tables are not preserved. Fails if the URL serves HTML, not a PDF.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pdf_text_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Direct link to the .pdf file, not a viewer page. Not with data. | |
| data | No | Base64 PDF, max 5 MB decoded. Not with url. | |
| headers | No | Headers to forward (Authorization, Cookie…). | |
| maxChars | No | Output cap, chars. Default 20000, max 100000. |