# Downloading local output files

{% hint style="info" %}
**Required dataset permission:** Download redacted dataset files
{% endhint %}

For each file in a dataset, you can download the output file.

## Downloading a single output file <a href="#file-download-single" id="file-download-single"></a>

From the file list, to download a single output file, click the options menu for the file, then select the download option.

The dataset file preview also provides options to download the file.

### Datasets that generate redacted output files

For datasets that generate redacted versions of the source files, the option is **Download File**.

<figure><img src="/files/OSp48iTbYcXOl0jmDs7F" alt=""><figcaption><p>File options menu with the download option</p></figcaption></figure>

<figure><img src="/files/EeuFruD4yNvVvwegBRKx" alt=""><figcaption><p>Download File option on the file preview</p></figcaption></figure>

### Datasets that generate JSON output

For datasets that generate JSON output, you can download either the JSON output or the redacted version of the Markdown content.

<figure><img src="/files/UPDc3TlbDLzkdk5DnBkk" alt=""><figcaption><p>File options menu for a file in a JSON output dataset</p></figcaption></figure>

<figure><img src="/files/4v0COshKAh5HD2xHihzX" alt=""><figcaption><p>Download menu on the file preview for a file in a JSON output dataset</p></figcaption></figure>

For RTF files, you can also download the redacted content in HTML format.

<figure><img src="/files/btN8KmsPOD9zKFmTVIHf" alt=""><figcaption><p>File options menu for an RTF file in a JSON output dataset</p></figcaption></figure>

<figure><img src="/files/X4nxWh8tL3XeHlZImJeW" alt=""><figcaption><p>Download menu on the preview for an RTF file in a JSON output dataset</p></figcaption></figure>

## Downloading all of the output files <a href="#file-download-all" id="file-download-all"></a>

To download all of the output files, click the download icon that is next to the file filter field.

<figure><img src="/files/JYL1BQxlWDhOFjbk0Rje" alt=""><figcaption><p>Download all files icon on the dataset file list</p></figcaption></figure>

For datasets that generate redacted versions of the source files, the download happens immediately.

For datasets that generate JSON output:

* To download the JSON output for the files, select **Download JSON**.
* To download the redacted Markdown content for all of the files, select **Download Markdown**.
* If the dataset contains any RTF files, then to download only the redacted HTML content for all of the RTF files in the dataset, select **Download HTML (RTF only)**. If you select this option, then the download does not include other types of files.

<figure><img src="/files/lEy6sT5Yzp5OYb69YT3g" alt=""><figcaption><p>Download all options for a JSON output dataset</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/textual/datasets-preview-output/output-download-local.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
