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

kill_pane

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 instead.

All Python tools · JSON · Source

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.

Input schema
{
"additionalProperties": false,
"properties": {
"pane_id": {
"description": "Pane ID (e.g. '%1'). Required — no fallback resolution.",
"type": "string"
},
"socket_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "tmux socket name."
}
},
"required": [
"pane_id"
],
"type": "object"
}
Output schema
{
"properties": {
"result": {
"type": "string"
}
},
"required": [
"result"
],
"type": "object",
"x-fastmcp-wrap-result": true
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false
}
Esc

Type to search.