MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

show_hooks

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

All Go tools · JSON · Source

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
{
"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
{
"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
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Show hooks"
}
Esc

Type to search.