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.interrupt_gracefully

libtmux_mcp.prompts.recipes.interrupt_gracefully ( pane_id: str, ) → str

Interrupt a running command and verify the prompt returned.

Description#

Sends C-c through send_keys(literal=True), then waits on shell-prompt patterns via wait_for_text. Fails loudly if the process ignores SIGINT — the right escalation point is the caller, not an automatic C-\ follow-up (SIGQUIT can core-dump).

Parameters
Esc

Type to search.

Reference previewOpen reference