> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-cms-changelog-node-lifecycle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MaskPreview - ComfyUI Built-in Node Documentation

> The MaskPreview node displays a visual preview of the mask data directly in the ComfyUI interface, without saving it to the output directory.

The MaskPreview node displays a visual preview of the mask data directly in the ComfyUI interface, without saving it to the output directory. This lets you inspect the mask at any point in your workflow, while the mask also passes through the node unchanged so it can continue to be used downstream.

## Inputs

| Parameter         | Description                                                      | Data Type      | Required | Range |
| ----------------- | ---------------------------------------------------------------- | -------------- | -------- | ----- |
| `mask`            | The mask data to preview                                         | MASK           | Yes      | -     |
| `filename_prefix` | Filename prefix used for the preview (default: "ComfyUI")        | STRING         | No       | -     |
| `prompt`          | Prompt information for metadata (automatically provided)         | PROMPT         | No       | -     |
| `extra_pnginfo`   | Additional PNG information for metadata (automatically provided) | EXTRA\_PNGINFO | No       | -     |

Only `mask` is a visible input that needs to be connected. The `filename_prefix`, `prompt`, and `extra_pnginfo` parameters are supplied by the system: `filename_prefix` falls back to its default value, while `prompt` and `extra_pnginfo` are hidden and provided automatically by the ComfyUI runtime.

## Outputs

| Output Name | Description                                                                                           | Data Type |
| ----------- | ----------------------------------------------------------------------------------------------------- | --------- |
| `mask`      | The same mask data that was previewed, returned unchanged so it can be used elsewhere in the workflow | MASK      |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/MaskPreview/en.md)

***

**Source fingerprint (SHA-256):** `fb7abe8cb6b5ac8a6a38e88ef90a146d16caf41d24c5de95309a94bc3c371d75`
