---
title: "Add Heading"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/docx/addheading
markdown: https://docs.nodetool.ai/nodes/lib/docx/addheading.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/docx/addheading.md
---

# Add Heading

**Type:** `lib.docx.AddHeading`

**Namespace:** `lib.docx`

## Description

Adds a heading to the document
    document, docx, heading, format

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| document | `document` | The document to add the heading to | `{"type":"document","uri":"","asset_id":null,"da...` |
| text | `str` | The heading text | `` |
| level | `int` | Heading level (1-9) | `1` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `document` |  |

## Related Nodes

Browse other nodes in the [lib.docx](./) namespace.
