ui_close_window
Close a top-level window by matching an optional title; omit to close the main application window. Use for dismissing dialogs or ending a session.
Instructions
Close a top-level window via WindowPattern.
After closing, subsequent ui_* calls return an error if the closed window was the active session window. Use window_title to target a specific window (e.g. a modal dialog); omit to close the main application window.
Args: window_title: Optional partial title match to target a specific window. Omit to target the main connected window.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ui_close_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window_title | No |