MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux_mcp.tools.env_tools.set_environment

libtmux_mcp.tools.env_tools.set_environment ( name: str, value: str, session_name: str | None = None, session_id: str | None = None, socket_name: str | None = None, ) → EnvironmentSetResult

Set a tmux environment variable.

Description#

Use to set variables that will be inherited by new panes and windows. Changes do not affect already-running processes.

Some variables control later shell execution. Bash sources the file named by BASH_ENV, POSIX shells may source the file named by ENV, and Bash evaluates PROMPT_COMMAND before displaying a prompt.

Parameters
Returns

EnvironmentSetResult Confirmation with variable name, value, and status.

Esc

Type to search.

Reference preview Open reference