read_document
Read and extract text from PDFs (with page selection and per-page markers), text, markdown, JSON, and CSV as formatted tables. Unsupported files return clear errors.
Instructions
Read a document and return its text content.
Supports .pdf (extracted per page with '--- page N ---' markers), .txt / .md / .json (read directly), and .csv (rendered as an aligned text table). Other types return a clear error.
Args: path: File path inside the allowed root. pages: Optional 1-indexed page selection for PDFs, e.g. '3', '1-5', or '1-3,7'. Empty string means all pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |