# libtmux_mcp.tools.option_tools.show_option

- **Module:** libtmux_mcp.tools.option_tools
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/option_tools.py#L64
- **Page:** https://libtmux.org/en/py/stable/mcp/reference/libtmux_mcp-tools-option_tools-show_option/

```
libtmux_mcp.tools.option_tools.show_option(
    option: str,
    scope: t.Literal["server", "session", "window", "pane"]
    | None = None,
    target: str | None = None,
    global_: bool = False,
    socket_name: str | None = None,
) -> OptionResult
```

Show a tmux option value.

Use to check tmux configuration values such as history-limit,
mouse support, or status bar settings.

## Parameters

- `option` (`str`): The tmux option name to query.
- `scope` (`t.Literal["server", "session", "window", "pane"] | None`): Option scope.
- `target` (`str | None`): 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.
- `global_` (`bool`): Whether to query the global option.
- `socket_name` (`str | None`): tmux socket name.

## Returns

OptionResult
    Option name and its value.
