Set option¶
set_option¶
set_optionSet a tmux option value.
- Returns:
Use when you need to change tmux behavior — adjusting history limits, enabling mouse support, changing status bar format.
Side effects: Changes the tmux option value.
Example:
{
"tool": "set_option",
"arguments": {
"option": "history-limit",
"value": "50000"
}
}
Response:
{
"option": "history-limit",
"value": "50000",
"status": "set"
}
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
yes |
— |
The tmux option name to set. |
|
|
yes |
— |
The value to set. |
|
|
|
no |
— |
Option scope. One of: |
|
no |
— |
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 |
|
Whether to set the global option. |
|
|
no |
— |
tmux socket name. |