extract_text
Pulls text from PDF files, optionally for specific pages like "1-3,7", returning content and a truncation flag. Handles password-protected PDFs with local password entry.
Instructions
Extract text from all pages or a page spec (e.g. "1-3,7"). Returns text + truncation flag.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>"
},
"name": "extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| password | No | ||
| max_chars | No | ||
| input_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| text | Yes | ||
| truncated | Yes | ||
| pages_read | Yes |