show_option
-
Show a tmux option value.
Use to check tmux configuration values such as history-limit, mouse support, or status bar settings.
- MCP request method
tools/callSendshow_optionas the tool name, with the arguments below.- Wraps
libtmux.options.OptionsMixin.show_optionThe library call this tool makes:src/libtmux_mcp/tools/option_tools.py:97.
Arguments
-
Whether to query the global option.
-
The tmux option name to query.
-
scope? =null("server" | "session" | "window" | "pane" | null)Option scope.
-
socket_name? =null(string | null)tmux socket name.
-
target? =null(string | null)Target identifier. For session scope: session name (e.g. ‘mysession’). For window scope: window ID (e.g. ‘@1’). For pane scope: pane ID (e.g. ‘%1’). Requires scope.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Capability
- Toolset
- Inspect Request tmux state and terminal output.
Every Python tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"global_": {"default": false,"description": "Whether to query the global option.","type": "boolean"},"option": {"description": "The tmux option name to query.","type": "string"},"scope": {"anyOf": [{"enum": ["server","session","window","pane"],"type": "string"},{"type": "null"}],"default": null,"description": "Option scope."},"socket_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "tmux socket name."},"target": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Target identifier. For session scope: session name\n(e.g. 'mysession'). For window scope: window ID (e.g. '@1').\nFor pane scope: pane ID (e.g. '%1'). Requires scope."}},"required": ["option"],"type": "object"}Output schema
{"description": "Result of a show_option call.","properties": {"option": {"description": "Option name","type": "string"},"value": {"description": "Option value"}},"required": ["option","value"],"type": "object"}