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

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

All Java 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
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
{
"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
{
"additionalProperties": false,
"properties": {
"count": {
"type": "integer"
},
"hooks": {
"type": "object"
},
"scope": {
"type": "string"
},
"target": {
"type": "string"
}
},
"required": [
"scope",
"target",
"count",
"hooks"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Show hooks"
}
Esc

Type to search.