Get pane infoΒΆ

get_pane_infoΒΆ

get_pane_info
ΒΆ
readonly tool

Get detailed information about a tmux pane.

Returns:

PaneInfo

Use when you need pane dimensions, PID, current working directory, or other metadata without reading the terminal content.

Avoid when you need the actual text β€” use capture_pane.

Side effects: None. Readonly.

Example:

{
  "tool": "get_pane_info",
  "arguments": {
    "pane_id": "%0"
  }
}

Response:

{
  "pane_id": "%0",
  "pane_index": "0",
  "pane_width": "80",
  "pane_height": "24",
  "pane_current_command": "zsh",
  "pane_current_path": "/home/user/myproject",
  "pane_pid": "12345",
  "pane_title": "",
  "pane_active": "1",
  "window_id": "@0",
  "session_id": "$0",
  "is_caller": false
}

Parameters

Parameter

Type

Required

Default

Description

pane_id

str

no

β€”

Pane ID (e.g. β€˜%1’).

session_name

str

no

β€”

Session name for pane resolution.

session_id

str

no

β€”

Session ID (e.g. β€˜$1’) for pane resolution.

window_id

str

no

β€”

Window ID for pane resolution.

socket_name

str

no

β€”

tmux socket name.