libtmux_mcp.tools.option_tools.set_option
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
Set a tmux option value.
Some option values are executable. tmux runs a
#(...)job inside the status formats when it draws them, and repeats it on the status interval;default-commandanddefault-shelldecide what every future pane runs, andcommand-aliasrewrites later commands. The value is stored verbatim, so an option that interprets it later runs what is stored, not what this call did.Use to change tmux behavior at runtime. Common uses: adjusting history-limit, enabling mouse support, changing status bar format.
- Parameters
-
-
option ( str ) – The tmux option name to set.
-
value ( str ) – The value to set.
-
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 set the global option.
-
- Returns
-
OptionSetResult Confirmation with option name, value, and status.