Get document section
get-document-sectionRead a document section by ID, a window at a time. Use this after search-documents to read the text behind a hit before answering from it.
WHEN TO USE:
After search-documents returns results, use the document_id from a hit to read the section
When you need the text of an MD&A, risk factor, or business description
To read the full context around a search snippet
PARAMETERS:
document_id(required) — from a search-documents hit, or the next_document_id of a partoffset— character offset to start from (default 0)length— characters to return (default 4000, max 8000)
RETURNS:
content— the requested window.content_lengthis the whole part, andnext_offsetis present when more of it follows: call again with it asoffsetto read on rather than answering from a partial readEntity, filing, and section metadata
A long section is stored in parts of about 25K characters: the result is one part (part of part_count, section_label like "MD&A (2/6)") and carries next_document_id — call again with it to read the next part; parent_document_id is shared by the section's parts
content_url for the CDN-hosted clean text (when available)
For iXBRL disclosures: xbrl_elements, the XBRL fact tags in this section — use resolve-element or read-graph-cypher to cross-reference with the knowledge graph
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "get-document-section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Characters to return (default 4000, max 8000) | |
| offset | No | Character offset to start from (default 0); pass a result's next_offset to read on | |
| document_id | Yes | Document ID from a search-documents result, or the next_document_id of a part |