Skip to content

Commit aa6aeaa

Browse files
committed
docs
1 parent 975462c commit aa6aeaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,18 @@ Examples:
390390
}
391391
```
392392

393-
=== "Block specific tool call"
393+
=== "Block specific tool call checking hook arg"
394394

395395
```javascript
396396
{
397397
"hooks": {
398-
"notify-me": {
398+
"check-my-tool": {
399399
"type": "preToolCall",
400400
"matcher": "my-mcp__some-tool",
401401
"actions": [
402402
{
403403
"type": "shell",
404-
"shell": "echo \"We should not run this tool bro!\" >&2 && exit 2"
404+
"shell": "tool=$(jq '.\"tool-name\"' <<< \"$1\"); echo \"We should not run the $tool tool bro!\" >&2 && exit 2"
405405
}
406406
]
407407
}

0 commit comments

Comments
 (0)