pdf_text
Extract selectable text from a PDF, optionally for specific pages, to read or process document content. For scanned PDFs without selectable text, use an OCR or text-reading tool instead.
Instructions
Extract the selectable text of a PDF. pages like '1-3,5'; empty means all. Scans have none: use read_text.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |