"OpenCloseGroup"
This token has not been fully integrated into the long-term Wolfram Language, and is subject to change.
"OpenCloseGroup"
is a front end token that opens selected groups if they are closed or closes selected groups if they are open.
Details

- "OpenCloseGroup" is equivalent to Cell ▶ Grouping ▶ Open/Close Group.
- "OpenCloseGroup" will affect only the outermost level of the selected groups.
- A typical use is FrontEndExecute[FrontEndToken["OpenCloseGroup"]].