extract_text_from_pdf
Extract text from a previously loaded PDF, choosing plain text, JSON, or blocks output, with optional page selection.
Instructions
Extract text from a loaded PDF document.
The document must be loaded first using load_pdf.
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": {
"document_id": "<document_id>"
},
"name": "extract_text_from_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format - "text" (plain text), "json" (structured), or "blocks" (text blocks) | text |
| document_id | Yes | Identifier of the loaded document | |
| page_number | No | Specific page number to extract (0-indexed). If None, extracts all pages |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |