Close an app sub-window
window_closeCloses a CyberBrick app window by its windowId to prevent window buildup. Unsaved changes still trigger the app's own confirmation dialog.
Instructions
Close a CyberBrick app window by its windowId (from window_list). Uses the app's own closeSubWindow (window:close-sub-window IPC) — the same path as the window's close button; unsaved changes trigger the app's own confirm dialog, which the MCP does not bypass. The MCP-connected window cannot be closed (REFUSE_CLOSE_CURRENT). Each project_open_editor with target="new" opens one of these — close them to avoid window buildup. MUTATING.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowId | Yes | Window id to close (from window_list). Must not be the current window. |