# Managing Mask History

The mask history tracks changes made through:

* Manual drawing tools from the **Inpaint Toolbar** (Brush, Rectangle, Polygonal Lasso).
* Mask manipulation actions from the Toolbar (Clear, Invert, Inflate/Deflate, Border Mask).
* Applying an AI-generated mask layer to the main mask via the "Apply Layer to Mask" action.

***

### Important Notes:

* **Focus:** The Undo/Redo shortcuts for mask history are generally active when the **Inpaint Canvas** or its associated tools have focus.
* **Separate from Global Undo:** Some UI parts might have their own Undo/Redo system for other actions. The `Ctrl+Z`/`Ctrl+Y` for masks specifically targets the **masking canvas operations**. *(This page focuses only on mask history.)*
* **Reset**: Since the mask content area depends on the generation area, changing the generation area will often flush the mask history, even though the current mask will look unchanged.

Using Undo and Redo for your mask is a quick and essential way to correct errors and experiment without fear of making irreversible changes to your selections.


---

# 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://fater.gitbook.io/fater-ai-docs/using-editing-and-masking-tools/managing-mask-history.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.
