get_document_content
Retrieve text from a document by ID in bounded windows; use offset and max_chars to page through long files while receiving length and pagination metadata.
Instructions
Get the text content of a specific document by ID, in bounded windows. Returns at most max_chars characters (default 8000) starting at offset, plus content_length and pagination metadata so callers can page through long documents. Use offset + max_chars to read successive windows of a long document; use the download_document resource for bulk access to the raw file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| offset | No | Character offset to start reading from (default 0). | |
| max_chars | No | Maximum characters to return (default 8000). Requests above the inline budget fail with the document size instead of returning everything. |