# show_hooks

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

> Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Reads configured tmux hooks.

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. Reads configured tmux hooks.

[All Go tools](https://libtmux.org/en/go/latest/mcp/tools/) · [JSON](https://libtmux.org/en/go/latest/mcp/tools/show_hooks.json) · [Source](https://github.com/libtmux/libtmux-go/blob/aaf86678fe0cbdf56f9e1c9c46b0db0704e15656/mcp/manifest_catalog.go#L283)

## Arguments

* `name` optional · string

  one hook name; omit to read all hooks in the scope

* `scope` optional · string

  global, server, session, window, or pane

* `target` optional · string

  the target required by session, window, and pane scopes

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "description": "one hook name; omit to read all hooks in the scope",
      "type": "string"
    },
    "scope": {
      "description": "global, server, session, window, or pane",
      "enum": [
        "",
        "global",
        "server",
        "session",
        "window",
        "pane"
      ],
      "type": "string"
    },
    "target": {
      "description": "the target required by session, window, and pane scopes",
      "type": "string"
    }
  },
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "hooks": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "command": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "command"
        ],
        "type": "object"
      },
      "type": [
        "array"
      ]
    },
    "scope": {
      "type": "string"
    }
  },
  "required": [
    "scope",
    "hooks"
  ],
  "type": "object"
}
```

Tool annotations

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