komrad

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 '{}'

Request#

Empty#

No fields.

Response#

ListHooksResponse#

FieldTypeDescription
hooksHook[]

Every file in the hooks directory, executable or not.

Types#

Hook#

Hook is a script in the hooks directory.

FieldTypeDescription
namestring

The hook's file name in the hooks directory. A workflow names the hook by it.

executablebool

Whether the file is executable. The hook cannot run until it is.

descriptionstring

The description from the hook's header comments.

timeoutduration

How long the hook may run. The header can shorten the hooks.timeout setting but not lengthen it.

header_problemsstring[]

The header lines that could not be read. Each one leaves its setting at the default.