Get Document
get_docRetrieve document content from a URL with pagination support for large files. Use offset and limit to control chunk size, and has_more to continue fetching.
Instructions
Get document content with pagination support for large documents.
For documents larger than 50KB, use offset/limit to paginate through content. The response includes has_more=True if more content is available. For targeted retrieval, use get_doc_excerpt instead.
Args: url: The URL of the document (as returned by search_docs). offset: Start position in bytes (default: 0). limit: Max bytes to return per call (default: 50000, max: 100000).
Returns: Document with content chunk, pagination metadata (offset, length, total_length, has_more).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the document (as returned by search_docs) | |
| limit | No | Max bytes to return (default 50000, max 100000) | |
| offset | No | Start position in bytes (for pagination) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| title | Yes | ||
| length | No | ||
| offset | No | ||
| source | Yes | ||
| content | Yes | ||
| has_more | No | ||
| source_url | Yes | ||
| total_length | No |