Kill window

kill_window

kill_window
destructive tool

Kill (close) a tmux window. Requires exact window_id (e.g. ‘@3’).

Returns:

str

Use when you’re done with a window and all its panes.

Avoid when you only want to remove one pane — use kill_pane.

Side effects: Destroys the window and all its panes. Not reversible.

Example:

{
  "tool": "kill_window",
  "arguments": {
    "window_id": "@1"
  }
}

Response (string):

Window killed: @1

Parameters

Parameter

Type

Required

Default

Description

window_id

str

yes

Window ID (e.g. ‘@1’). Required — no fallback resolution.

socket_name

str

no

tmux socket name.