Files
goclaw/examples/hooks/audit-tool-usage.json
T
viettranx 95bdb23a36 docs(hooks): user guide + example configs + changelog + Make targets
- docs/agent-hooks.md: handler reference, lifecycle events, security model
- examples/hooks/: 5 runnable JSON configs (audit, lint, block-rm-rf,
  Discord notify, context injector)
- docs/17-changelog.md: Wave 0 entry
- Makefile: hooks-specific test targets
- CLAUDE.md: cross-reference
2026-04-16 14:17:47 +07:00

24 lines
589 B
JSON

{
"event": "post_tool_use",
"handler_type": "http",
"scope": "tenant",
"matcher": "",
"if_expr": "",
"config": {
"url": "https://audit.internal.example.com/hooks/tool-usage",
"headers": {
"Authorization": "Bearer REPLACE_ME_ENCRYPTED",
"X-Goclaw-Audit": "tool-usage"
}
},
"timeout_ms": 2000,
"on_timeout": "allow",
"priority": 1,
"enabled": true,
"source": "seed",
"metadata": {
"notes": "Streams every tool invocation to an external audit sink for compliance. Tenant-wide.",
"tags": ["observability", "compliance", "audit"]
}
}