You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mcp(feat[window_tools]): add get_window_info for single-window metadata
why: get_pane_info and get_server_info exist, but the window and
session peers do not. Agents given a window_id and asked "what are
this window's dimensions?" have to call list_panes or list_windows
and filter — wasteful. Adding get_window_info closes one half of the
core-tmux-hierarchy symmetry (get_session_info follows next).
The symmetry argument is deliberately bounded to the four-level core
hierarchy (Server > Session > Window > Pane). This is NOT a license
to add get_buffer_info / get_hook_info / get_option_info — those
scopes are outside the hierarchy and the existing show_*/load_*
tools already cover their reads. An inline comment on the function
memorializes that boundary so future contributors don't re-relitigate
it.
what:
- Add get_window_info(window_id, window_index, session_name,
session_id, socket_name) returning WindowInfo. Reuses
_resolve_window (accepts window_id OR window_index+session) and
_serialize_window — no new helpers.
- Register with ANNOTATIONS_RO + TAG_READONLY, placed next to
list_panes in the Window tool group.
- Add test_get_window_info (resolves by window_id) and
test_get_window_info_by_index (resolves by index+session) mirroring
the minimal-assertion style used by test_list_panes.
- Add docs/tools/window/get-window-info.md modeled after
get-pane-info.md; insert the new page into the Window tools index
grid and toctree.
- Append get_window_info to the README tool catalog Window row.
0 commit comments