Extract text
pdf_extract_textExtracts a PDF text layer to a .txt file and returns per-page character counts; optionally includes text in results when requested for context.
Instructions
Extract the text layer to a .txt file and return per-page character counts. The text is NOT returned by default — set inline=true only if the caller really needs the content in its context (it then lands in the model provider logs).
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_extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | output .txt path | |
| path | Yes | ||
| pages | No | 1-based page numbers. Omit for all pages. | |
| inline | No | also return the text in the tool result (opt-in) |