Extract PDF text
extract_pdf_textRead the selectable text layer of a PDF. Returns per-page text, markdown-style headings, and an o200k token count. Does not OCR scans. Send base64 or a public URL. Private addresses are refused.
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": "extract_pdf_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL of a PDF. Private and local addresses are refused. Provide data or url. | |
| data | No | PDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url. | |
| filename | No | ||
| mimeType | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| pages | Yes | ||
| tokens | Yes | ||
| markdown | Yes | ||
| pageCount | Yes | ||
| emptyPages | Yes |