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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"windowId": "<windowId>"
},
"name": "window_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowId | Yes | Window id to close (from window_list). Must not be the current window. |