Close all matching windows
Ask every visible window whose title matches to close (like clicking each X); programs may still ask to save.
Command in the Window toolkit · id ooa.window/close_all · 3 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Title | String | No | Text in the window titles, a pattern with * or ?, or re: and a regular expression (case-insensitive); the tick below reads the whole title as a regular expression, as older agents do. Empty: every window except those to keep (G4). | |
| Title is a regular expression | Boolean | No | false | Treat title as a regular expression. |
| Keep | List | No | Windows to leave open: text in their titles (case-insensitive), e.g. ["Invoices.xlsx"]. The agent's own windows are always kept. |
Outputs
| Output | Type | What it is |
|---|---|---|
| closed | List | Titles of the windows asked to close. |
| count | Number | Number of windows asked to close. |