MCPconceptAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

mcp.src.TmuxTools.get_tmux_variables

#[tool_router(router = contract_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Read a bounded set of tmux variables against one pane. tmux reads a \ name it does not know as a format from its environment, so a name the \ server or session environment holds is refused unless the operator \ listed it in LIBTMUX_ENVIRONMENT_VALUES at startup.", title = "Get tmux Variables", meta = crate::capability_meta!( Inspect, None, effects = [Observe], outputs = [TmuxMetadata, ConfiguredCommand], secrets = true, untrusted = true, sinks = {"names" => [TmuxFormat], "pane" => [TmuxLookup]}, literalized = [], format_validated = ["names"], nested = [], self_bounded = false, always_load = false, ) )] pub async fn get_tmux_variables( &self, Parameters(VariablesArgs { names, pane }): Parameters<VariablesArgs>, ) -> Result<Json<VariablesValue>, ToolError>
Esc

Type to search.

Reference previewOpen reference