Close i3 Window
kill_windowClose the focused window or any window matching class, title, instance, mark, or con_id. The application is asked to quit and may discard unsaved work.
Instructions
Close a window — the focused one, or one matched by class/title/instance/mark/con_id. DESTRUCTIVE: the target application is asked to quit and may discard unsaved work; there is no undo, and matching several windows closes all of them. To move a window out of the way instead of closing it, use move_window (e.g. to the scratchpad).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mark | No | Close the window carrying this mark (criteria). | |
| title | No | Close windows whose title matches (criteria). | |
| con_id | No | Close the container with this exact i3 id (criteria). | |
| instance | No | Close windows whose WM_CLASS instance matches (criteria). | |
| window_class | No | Close windows whose X11 class matches (criteria). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | First error message across the payload, or null on full success. | |
| success | Yes | True only if every command in the payload succeeded. | |
| outcomes | No | Per-command outcomes, in payload order. |