Options & Environment¶
Inspect readonly¶
show_option readonly¶
Show a tmux option value.
Returns: OptionResult
Use when you need to check a tmux configuration value — buffer limits, history size, status bar settings, etc.
Side effects: None. Readonly.
Example:
{
"tool": "show_option",
"arguments": {
"option": "history-limit"
}
}
Response:
{
"option": "history-limit",
"value": "2000"
}
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
yes |
— |
The tmux option name to query. |
|
|
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 query the global option. |
|
|
no |
— |
tmux socket name. |
show_environment readonly¶
Show tmux environment variables.
Returns: EnvironmentResult
Use when you need to inspect tmux environment variables.
Side effects: None. Readonly.
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
— |
Session name to query environment for. |
|
|
no |
— |
Session ID to query environment for. |
|
|
no |
— |
tmux socket name. |
Act mutating¶
set_option mutating¶
Set a tmux option value.
Returns: OptionSetResult
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. |
set_environment mutating¶
Set a tmux environment variable.
Returns: EnvironmentSetResult
Use when you need to set a tmux environment variable.
Side effects: Sets the variable in the tmux server.
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
yes |
— |
Environment variable name. |
|
|
yes |
— |
Environment variable value. |
|
|
no |
— |
Session name to set environment for. |
|
|
no |
— |
Session ID to set environment for. |
|
|
no |
— |
tmux socket name. |