We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975462c commit aa6aeaaCopy full SHA for aa6aeaa
docs/configuration.md
@@ -390,18 +390,18 @@ Examples:
390
}
391
```
392
393
-=== "Block specific tool call"
+=== "Block specific tool call checking hook arg"
394
395
```javascript
396
{
397
"hooks": {
398
- "notify-me": {
+ "check-my-tool": {
399
"type": "preToolCall",
400
"matcher": "my-mcp__some-tool",
401
"actions": [
402
403
"type": "shell",
404
- "shell": "echo \"We should not run this tool bro!\" >&2 && exit 2"
+ "shell": "tool=$(jq '.\"tool-name\"' <<< \"$1\"); echo \"We should not run the $tool tool bro!\" >&2 && exit 2"
405
406
]
407
0 commit comments