MCPconceptPrompts

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.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

prompt MCP

interrupt_gracefully

interrupt_gracefully( pane_id, )
prompt

Send C-c to a pane and verify the shell prompt came back.

MCP request method
prompts/get Send interrupt_gracefully as the prompt name, with the arguments below.

Arguments

  • pane_id

    the target pane, such as %1

    Binding
    Prompt argument

Result

Returns the prompt’s messages. The client supplies the advertised arguments as strings.

Protocol data

Use the complete advertised contract for validation and client integration.

Registration
{
"_meta": {
"com.git-pull.libtmux-mcp/prompt": {
"arguments": [
{
"description": "the target pane, such as %1",
"name": "pane_id",
"required": true
}
],
"description": "Send C-c to a pane and verify the shell prompt came back.",
"name": "interrupt_gracefully",
"requiresTools": [
"get_pane_info",
"send_keys",
"wait_for_text"
],
"title": "Interrupt a command gracefully"
}
},
"arguments": [
{
"description": "the target pane, such as %1",
"name": "pane_id",
"required": true
}
],
"description": "Send C-c to a pane and verify the shell prompt came back.",
"name": "interrupt_gracefully",
"title": "Interrupt a command gracefully"
}
Esc
Search in

Type to search.

Reference previewOpen reference