libtmux_mcp.tools.pane_tools.display_message
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
Read tmux variables against a target and return the substituted text.
Use this when no dedicated tool covers the field you want, e.g. '#{window_zoomed_flag}', '#{pane_dead}', '#{client_activity}'.
Accepts literal text and '#{variable}' references. Format modifiers, conditionals, and jobs are refused: tmux expands '#{E:x}' by running x's *value* through the expander again, and a value can arrive from a pane rather than from the caller. For raw format syntax, run 'tmux display-message -p' through run_command, where the caller supplies it on a surface labelled execution.
Returned values can carry text a pane chose, such as a working directory or a running command.
- Parameters
- Returns
-
str Expanded format string result.
- Raises
-
-
ExpectedToolError – If
format_stringcarries tmux format syntax other than#{variable}references.
-