# show_hooks

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

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

MCP is in development

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

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

[All Java tools](https://libtmux.org/en/java/latest/mcp/tools/) · [JSON](https://libtmux.org/en/java/latest/mcp/tools/show_hooks.json) · [Source](https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-mcp/src/main/java/io/github/libtmux/mcp/InspectTools.java#L352)

## 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

  Required for session scope (an ID such as $1, or a name), window scope (@1) and pane scope (%1).

## 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.",
      "type": "string"
    },
    "target": {
      "description": "Required for session scope (an ID such as $1, or a name), window scope (@1) and pane scope (%1).",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "count": {
      "type": "integer"
    },
    "hooks": {
      "type": "object"
    },
    "scope": {
      "type": "string"
    },
    "target": {
      "type": "string"
    }
  },
  "required": [
    "scope",
    "target",
    "count",
    "hooks"
  ],
  "type": "object"
}
```

Tool annotations

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