Get pane infoΒΆ
get_pane_infoΒΆ
get_pane_infoGet detailed information about a tmux pane.
- Returns:
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 |
|---|---|---|---|---|
|
no |
β |
Pane ID (e.g. β%1β). |
|
|
no |
β |
Session name for pane resolution. |
|
|
no |
β |
Session ID (e.g. β$1β) for pane resolution. |
|
|
no |
β |
Window ID for pane resolution. |
|
|
no |
β |
tmux socket name. |