get_document_detail
One saved document's metadata plus a STRUCTURE outline and the chat sessions that have it open (prior-chats-per-file). Owner-scoped — 404 if the document isn't yours.
structure (always included, token-light, NON-BILLABLE) is the cheap verify step after
any edit: headings (level + text + position), section_count (heading-anchored), block_count
(editable chunks), media (image/diagram counts). It answers "did my edit land?" for free —
never export a whole document just to check its structure. Pass include_html=true only when
you need the body.
structure.parts (present when the document has headers, footers, notes or comments) lists
each part with part_type, chunk_id and preview: whole is true when preview is the
part's entire text, and full_len is that text's full length in characters (when whole is
false the preview is abridged; pass include_html=true to read it all).
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_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| include_html | No | When true, also returns the document's full reassembled HTML body (`html`), plus its `page_setup` and `version_id`. Default false returns metadata + structure + prior-chats only, keeping the response token-light. This is the by-id way to read a saved document's body without opening it into a session. |