---
title: "Save Document File"
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/nodetool/document/savedocumentfile
markdown: https://docs.nodetool.ai/nodes/nodetool/document/savedocumentfile.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/document/savedocumentfile.md
---

# Save Document File

**Type:** `nodetool.document.SaveDocumentFile`

**Namespace:** `nodetool.document`

## Description

Write a document to disk.
    files, document, write, output, save, file

    The filename can include time and date variables:
    %Y - Year, %m - Month, %d - Day
    %H - Hour, %M - Minute, %S - Second

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| document | `document` | The document to save | `{"type":"document","uri":"","asset_id":null,"da...` |
| folder | `str` | Folder where the file will be saved | `` |
| filename | `str` | Name of the file to save. Supports strftime format codes. | `` |

## Outputs

_(none)_

## Related Nodes

Browse other nodes in the [nodetool.document](./) namespace.
