list_hooks
List the hooks in the person's hooks directory, by the names create_workflow and update_workflow take.
read-onlyidempotentMCP toolHook
Calling it#
curl -X POST http://127.0.0.1:8787/komrad.hook.v1.HookService/ListHooks \
-H 'Content-Type: application/json' \
-d '{}'komrad rpc list-hooks{
"name": "list_hooks",
"arguments": {}
}Offered by the komrad MCP server to orchestrator agents.
Request#
Empty#
No fields.
Response#
ListHooksResponse#
Types#
Hook#
Hook is a script in the hooks directory.
| Field | Type | Description |
|---|---|---|
name | string | The hook's file name in the hooks directory. A workflow names the hook by it. |
executable | bool | Whether the file is executable. The hook cannot run until it is. |
description | string | The description from the hook's header comments. |
timeout | duration | How long the hook may run. The header can shorten the |
header_problems | string[] | The header lines that could not be read. Each one leaves its setting at the default. |