# interrupt_gracefully

Source: https://libtmux.org/en/go/latest/mcp/prompts/interrupt_gracefully/

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

**Concept example** A working example of the core library. It can change without notice. [What concept means](https://libtmux.org/en/meta/support/#concept-and-alpha)

* **interrupt_gracefully**( [pane_id](https://libtmux.org/en/go/latest/mcp/prompts/interrupt_gracefully/#mcp.prompt.interrupt_gracefully.parameter.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`](https://libtmux.org/en/go/latest/mcp/prompts/interrupt_gracefully/#mcp.prompt.interrupt_gracefully.parameter.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

  ```json
  {
    "_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"
  }
  ```

Source revision: [libtmux/libtmux-go@a11c2d5b512261d74a43aa58d41fdc069f343bb8](https://github.com/libtmux/libtmux-go/tree/a11c2d5b512261d74a43aa58d41fdc069f343bb8).
