Read a PDF
documents_read_pdfThe text of a PDF in the store, page by page (up to 50 pages a call; ask for later pages with first_page). Scanned pages without a text layer come back empty: files_ocr reads them ($0.005 a page). Free.
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": {
"file_id": "<file_id>"
},
"name": "documents_read_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | A file in the store (files_upload or files_list give its file_id). | |
| last_page | No | ||
| first_page | No |