Kill pane

kill_pane

kill_pane
destructive tool

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

Returns:

str

Use when you’re done with a specific terminal and want to remove it without affecting sibling panes.

Avoid when you want to remove the entire window — use kill_window.

Side effects: Destroys the pane. Not reversible.

Example:

{
  "tool": "kill_pane",
  "arguments": {
    "pane_id": "%1"
  }
}

Response (string):

Pane killed: %1

Parameters

Parameter

Type

Required

Default

Description

pane_id

str

yes

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

socket_name

str

no

tmux socket name.