Extract text
extract_textExtract plain text from a local PDF file. Optionally specify page ranges like '1-5' or '1,3,5-7' to extract only selected pages. Output is split by page with markers for easy navigation.
Instructions
Extract plain text from a local PDF. Optionally restrict to a page range like "1-5" or "1,3,5-7". Output is split by page with === Page N === markers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a PDF on the local filesystem. | |
| pages | No | Page range (1-based). Examples: "3", "1-5", "1,3,5-7". Omit for all pages. |