read_paper_pdf
Extract full text from PDFs via local path or URL. Returns page count, character count, and text; supports page selection and flags scanned PDFs needing OCR.
Instructions
Extract the full text of a PDF given a local file path or an http(s) URL.
If given a URL, the PDF is downloaded to the server's pdf dir first. Returns
local_path, page_count, char count and the extracted text (truncated to
max_chars, or one page if page is given). Scanned PDFs with no text layer
return an empty text plus a note telling you to run the file through OCR.
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": {
"path_or_url": "<path_or_url>"
},
"name": "read_paper_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| max_chars | No | ||
| path_or_url | Yes |