> For the complete documentation index, see [llms.txt](https://macdocs.supgpt.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://macdocs.supgpt.app/tools/create-file.md).

# Create File

The Create File tool allows the model to generate text-based files. Supported file types include, but are not limited to:

* Code and script files
* CSVs
* PDFs
* Text

If the [Active Directory](/tools/set-active-directory.md) is set, the files will be created in that directory. If the Active Directory is not set, the files will only be accessible within the chat.

<figure><img src="/files/4Obs5VkrnukGY1MKMUyl" alt=""><figcaption></figcaption></figure>

To view the contents of a created file, click the ![](/files/QfbNqxGtM7lLwYoFVvEH) button.

To export the file, click the ![](/files/LzY0xWZwX1BZ1C7vWF2z) button or simply drag the file out of the chat window.

<figure><img src="/files/pyDhaaQkQmSuLEGA7oYB" alt=""><figcaption></figcaption></figure>

## Generated Fragments

All created files are available in the Generated Fragments window. To open this window, click the <img src="/files/VmkH6lWgSUglpKjvdvot" alt="" data-size="original"> button in the top right corner of the chat window.

<figure><img src="/files/kDJXhqZsIcOsOFnZy0gh" alt=""><figcaption></figcaption></figure>
