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

# Write document markdown

> ⚠️ REPLACES ALL existing content with new Markdown-based content. To ADD content to an existing document, use append_markdown_to_document instead…

`write_document_markdown`

⚠️ REPLACES ALL existing content with new Markdown-based content. To ADD content to an existing document, use append\_markdown\_to\_document instead.  Converts extended Markdown to TipTap JSON server-side — supports ALL HERO node types (headings, @clause, @title, @signature, callouts, columns, tabs, tables, inline atoms, charts, etc.). See the Extended Markdown Syntax section in the system prompt for the full syntax reference.

## Parameters

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

<ParamField path="markdown" type="string" required>
  Full document content in extended Markdown. See system prompt for syntax.
</ParamField>
