# tmux_close

Source: https://libtmux.org/en/ruby/latest/mcp/tools/tmux_close/

> Destroy one exact session, window or pane. Opt-in destructive operation; closing a session or window also removes its contained topology. Never selects by name or closes the daemon directly. Returns the final tmux client outcome.

MCP is in development

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

Destroy one exact session, window or pane. Opt-in destructive operation; closing a session or window also removes its contained topology. Never selects by name or closes the daemon directly. Returns the final tmux client outcome.

**Policy:** opt in with --enable-tool tmux\_close.

[All Ruby tools](../) · [JSON](../tmux_close.json) · [Source](https://github.com/libtmux/libtmux-ruby/blob/e3815d2b35a6c663f20769231e1d22b565f87038/gems/libtmux-mcp/lib/libtmux/mcp/catalog.rb#L247)

## Arguments

This tool has no top-level named arguments. Consult its schema below.

## Schemas

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