> For the complete documentation index, see [llms.txt](https://docs.ins-pi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ins-pi.com/designer/work-in-the-app/formatting/collapse-and-expand-descendants.md).

# Collapse and Expand Descendants

Use collapse and expand to enhance diagrams' visibility.

Making a shape and its descendants collapsible/expandable can improve readability of the diagram and provide additional interactivity.

To use the Collapse feature follow these instructions:

**A** – Right-click a shape which has descendants.

**B** – Click the 'Collapse Descendants' option.

**C** – The descendants are collapsed and a '+' button added next to the shape.

![Collapse2](/files/VsvJX66Hrb0obKzEHEX1)

**D** – Use '-' button to expand again.

{% hint style="warning" %}
The '+' & '-' buttons remain once the 'Collapse Descendants' option is used.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.ins-pi.com/designer/work-in-the-app/formatting/collapse-and-expand-descendants.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.
