# kill_window

Source: https://libtmux.org/en/py/latest/mcp/tools/kill_window/

> Kill (close) a tmux window. Requires exact window_id (e.g. '@3').

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

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

Destroys the window and all its panes. Use [kill\_pane](https://libtmux.org/en/py/latest/mcp/tools/kill_pane/) to remove a single pane instead. Self-kill protection prevents killing the window containing this MCP process.

[All Python tools](../) · [JSON](../kill_window.json) · [Source](https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/window_tools.py#L522)

## Arguments

* `socket_name` optional

  tmux socket name.

  Default: `null`.

* `window_id` required · string

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

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.
