File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 44
55- Prefix tool name with server to LLM: <server >__ <toolname >. #196
66- Remove ` eca_ ` prefix from eca tools, we already pass server prefix (eca) after #196 .
7+ - Add ` approval ` arg to preToolCall hook input.
78
89## 0.77.1
910
Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ Examples:
359359 "hooks": {
360360 "notify-me": {
361361 "type": "postRequest",
362+ "visible": false,
362363 "actions": [
363364 {
364365 "type": "shell",
@@ -370,6 +371,26 @@ Examples:
370371 }
371372 ```
372373
374+ === "Ring bell sound when pending tool call approval"
375+
376+ ```javascript title="~/.config/eca/config.json"
377+ {
378+ "hooks": {
379+ "notify-me": {
380+ "type": "preToolCall",
381+ "visible": false,
382+ "actions": [
383+ {
384+ "type": "shell",
385+ "shell": "[[ $(jq '.approval == \"ask\"' <<< \"$1\") ]] && canberra-gtk-play -i complete"
386+ }
387+ ]
388+ }
389+ }
390+ }
391+ ```
392+
393+
373394=== "Block specific tool call checking hook arg"
374395
375396 ```javascript title="~/.config/eca/config.json"
@@ -378,7 +399,6 @@ Examples:
378399 "check-my-tool": {
379400 "type": "preToolCall",
380401 "matcher": "my-mcp__some-tool",
381- "visible": false,
382402 "actions": [
383403 {
384404 "type": "shell",
Original file line number Diff line number Diff line change 685685 {:chat-id chat-id
686686 :tool-name name
687687 :server server-name
688- :arguments arguments}
688+ :arguments arguments
689+ :approval approval}
689690 {:on-before-action (partial notify-before-hook-action! chat-ctx)
690691 :on-after-action (fn [result]
691692 (when (= 2 (:status result))
You can’t perform that action at this time.
0 commit comments