# kill_pane

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

> Kill (close) a tmux pane. Requires exact pane_id (e.g. '%5').

MCP is in development

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

Kill (close) a tmux pane. Requires exact pane\_id (e.g. ‘%5’).

Use to clean up panes no longer needed. To remove an entire window and all its panes, use [kill\_window](https://libtmux.org/en/py/latest/mcp/tools/kill_window/) instead.

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

## Arguments

* `pane_id` required · string

  Pane ID (e.g. '%1'). Required — no fallback resolution.

* `socket_name` optional

  tmux socket name.

  Default: `null`.

## Schemas

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