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.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 preview Open reference