Get window infoΒΆ
get_window_infoΒΆ
get_window_infoReturn metadata for a single tmux window (ID, name, layout, dimensions).
- Returns:
Use when you need metadata for a single window (name, index, layout,
dimensions, pane count) and you already know the window_id or
window_index. Avoids the list_windows + filter dance.
Avoid when you need every window in a session β call list_windows with
session_id or iterate via the tmux://sessions/{name}/windows resource.
Side effects: None. Readonly.
Example:
{
"tool": "get_window_info",
"arguments": {
"window_id": "@1"
}
}
Response:
{
"window_id": "@1",
"window_name": "editor",
"window_index": "1",
"session_id": "$0",
"session_name": "dev",
"pane_count": 2,
"window_layout": "7f9f,80x24,0,0[80x15,0,0,0,80x8,0,16,1]",
"window_active": "1",
"window_width": "80",
"window_height": "24"
}
Resolve by window_index when only the index is known β requires
session_name or session_id to disambiguate:
{
"tool": "get_window_info",
"arguments": {
"window_index": "1",
"session_name": "dev"
}
}
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
no |
β |
Window ID (e.g. β@1β). |
|
|
no |
β |
Window index within the session. Requires session_name or session_id to disambiguate. |
|
|
no |
β |
Session name for window_index lookup. |
|
|
no |
β |
Session ID for window_index lookup. |
|
|
no |
β |
tmux socket name. |