PDF Read
pdf_readReads and extracts text from a PDF document (.pdf file). Reads the PDF's text layer only — a scanned or image-only PDF returns little or no text, since this tool does not run OCR. Reads up to 50 pages and ~100 KB of text by default (max_pages changes the page cap); when a cap truncates the result, the header says how many of the total pages were included.
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": "<path>"
},
"name": "pdf_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the PDF file | |
| max_pages | No | Max pages to extract (default: all) | |
| force_download | No | If the file is stored in the cloud and evicted from this Mac (dataless), request the download and wait for it instead of failing. Off by default: a download can take minutes and use metered data, so it is the caller's decision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Extracted text content | |
| chars | Yes | Number of characters in the extracted text | |
| pages | No | Total number of pages in the PDF |