# show_hooks

Source: https://libtmux.org/en/csharp/latest/mcp/tools/show_hooks/

> Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Read the hooks tmux will run on its own events. Read-only on purpose: a hook written here would outlive this conversation and keep firing with nobody left who knows why. Put hooks you want to keep in your tmux config file.

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Read the hooks tmux will run on its own events. Read-only on purpose: a hook written here would outlive this conversation and keep firing with nobody left who knows why. Put hooks you want to keep in your tmux config file.

[All C# tools](https://libtmux.org/en/csharp/latest/mcp/tools/) · [JSON](https://libtmux.org/en/csharp/latest/mcp/tools/show_hooks.json) · [Source](https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Mcp/Policy/CapabilityModel.cs#L585)

## Arguments

* `paneId` optional · string | null

  The pane whose scope is read. Omit for this server's own pane, or else the one the first session shows.

  Default: `null`.

* `scope` optional · string

  Server, Session, Window, or Pane.

  Default: `"Session"`.

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "paneId": {
      "default": null,
      "description": "The pane whose scope is read. Omit for this server's own pane, or else the one the first session shows.",
      "type": [
        "string",
        "null"
      ]
    },
    "scope": {
      "default": "Session",
      "description": "Server, Session, Window, or Pane.",
      "enum": [
        "Server",
        "Session",
        "Window",
        "Pane"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

Output schema

```json
{
  "properties": {
    "result": {
      "items": {
        "properties": {
          "command": {
            "type": "string"
          },
          "index": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "scope": {
            "enum": [
              "Server",
              "Session",
              "Window",
              "Pane"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "index",
          "command",
          "scope"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Show hooks"
}
```
