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.
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. | |
| authorization | No |