MCPpre-alphaAPI 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: API Reference

libtmux_mcp.prompts.recipes.run_and_wait

libtmux_mcp.prompts.recipes.run_and_wait ( command: str, pane_id: str, timeout: float = 60.0 ) → str

Run a shell command in a tmux pane and wait for completion.

Description#

The returned template teaches the high-level authored-command primitive: run_command sends the command, waits through a private tmux signal, captures output, and reports exit status in one typed result. Use lower-level send_keys + wait_for_channel only when the caller needs custom shell composition outside this common command-completion shape.

Parameters
Esc

Type to search.

Reference previewOpen reference