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

libtmux_mcp.prompts.recipes.run_and_wait

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

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

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

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
  • command ( str ) – The shell command to run.

  • pane_id ( str ) – Target pane (e.g. %1).

  • timeout ( float ) – Maximum seconds to wait for command completion. Default 60.

Esc

Type to search.