> ## 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.

# List document blocks

> WHEN TO USE: Before calling patch_document to get block IDs. List all blocks in a document with their blockId, type, and text excerpt. Use this to…

`list_document_blocks`

WHEN TO USE: Before calling patch\_document to get block IDs. List all blocks in a document with their blockId, type, and text excerpt. Use this to identify blocks before patching. Much more token-efficient than read\_document\_content for editing workflows.

## Parameters

<ParamField path="documentId" type="string" required>
  ID of the document to list blocks for.
</ParamField>
