> ## Documentation Index
> Fetch the complete documentation index at: https://developers.myhero.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Build document map

> WHEN TO USE: You need a structural overview (table of contents, section list, defined terms) without reading full content. Build a structural map of a…

`build_document_map`

WHEN TO USE: You need a structural overview (table of contents, section list, defined terms) without reading full content. Build a structural map of a document: all clause sections (numbering, title, depth, content) and defined terms.

## Parameters

<ParamField path="documentId" type="string" required />
