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

# Read document text

> WHEN TO USE: You need to understand content for questions, analysis, or summarization. Works for editor documents and PDFs. Prefer this over…

`read_document_text`

WHEN TO USE: You need to understand content for questions, analysis, or summarization. Works for editor documents and PDFs. Prefer this over read\_document\_content unless you need raw JSON. Read the full text content of a document as plain text. Works for both HERO editor documents and external PDFs. For editor documents, clause numbering and headings are preserved. For PDFs, returns extracted text (no formatting structure). Use this when you need to read the actual content rather than just structural metadata, or when clause-specific tools don't return enough context.

## Parameters

<ParamField path="documentId" type="string">
  The document ID. Falls back to context documentId if omitted.
</ParamField>

<ParamField path="maxLength" type="integer" default={50000}>
  Max characters to return (default 50000). Minimum: 1000.
</ParamField>
