Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux_mcp.tools.window_tools.kill_window

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

libtmux_mcp.tools.window_tools.kill_window ( window_id : str , socket_name : str | None = None ) → str
function [source]
function [source]
libtmux_mcp.tools.window_tools.kill_window

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

Destroys the window and all its panes. Use kill_pane to remove a single pane instead. Self-kill protection prevents killing the window containing this MCP process.

Parameters
  • window_id ( str ) – Window ID (e.g. '@1'). Required — no fallback resolution.

  • socket_name ( str | None ) – tmux socket name.

Returns

str Confirmation message.

Esc

Type to search.