read_document
Retrieve and display document content. Optionally paginate by line range to read specific sections or the full document for quoting or review.
Instructions
Retrieves and displays document content, optionally
paginated by line range.
Use this tool when you need to:
- Access the complete content of a specific document
- Read a specific range of lines from a large
document
- Review document information in detail
- Quote or reference document content
When offset or limit are set, output includes line
numbers and a metadata header showing the range.
When both are 0 (default), the full document is
returned in the original format for backward
compatibility.
Args:
document_id: The document ID to retrieve
offset: 0-based line number to start from;
must be non-negative (default: 0)
limit: Number of lines to return; 0 means all
lines; must be non-negative (default: 0)
Returns:
Formatted string containing the document title
and content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |