Skip to content

Commit cbb548f

Browse files
committed
mcp(fix[docs]): Clarify parameter descriptions from tmux source
why: Several MCP tool parameter descriptions were ambiguous when cross-referenced against the tmux C source code. LLMs using these tools need precise format guidance to construct correct arguments. Verified against: - layout-set.c:43-49 for built-in layout names - cmd-split-window.c for size format - option_tools target format per scope what: - select_layout: list all 7 built-in layout names from tmux source - option_tools target: document expected format per scope (session name, window ID '@1', pane ID '%1')
1 parent fc4f7d7 commit cbb548f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libtmux/mcp/tools/option_tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def show_option(
7676
scope : str, optional
7777
Option scope: "server", "session", "window", or "pane".
7878
target : str, optional
79-
Target session, window, or pane identifier.
79+
Target identifier. For session scope: session name
80+
(e.g. 'mysession'). For window scope: window ID (e.g. '@1').
81+
For pane scope: pane ID (e.g. '%1'). Requires scope.
8082
global_ : bool
8183
Whether to query the global option.
8284
socket_name : str, optional
@@ -112,7 +114,9 @@ def set_option(
112114
scope : str, optional
113115
Option scope: "server", "session", "window", or "pane".
114116
target : str, optional
115-
Target session, window, or pane identifier.
117+
Target identifier. For session scope: session name
118+
(e.g. 'mysession'). For window scope: window ID (e.g. '@1').
119+
For pane scope: pane ID (e.g. '%1'). Requires scope.
116120
global_ : bool
117121
Whether to set the global option.
118122
socket_name : str, optional

0 commit comments

Comments
 (0)