Unverified50% confidenceFactExact time
The PreToolUse hook receives JSON from stdin containing the tool name and input; exit code 0 means allow and continue the normal permission flow, exit code 2 means a hard block, and other non-zero exit codes are usually treated as errors.
1
Sources
50%
Confidence
Long-term
Relevance
10/18/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedHook configuration is located at .claude/hooks/settings.json, exit code 2 is interpreted as blocking the current operation with the stderr content fed back to the model as feedback, and other non-zero exit codes usually only log the error without blocking.80% similarUnverifiedPreToolUse and PermissionRequest hooks are no longer skipped when matching fails or tool input cannot be serialized to JSON; instead, the call is directly blocked.70% similarUnverifiedvLLM is fairly sensitive to the format of startup arguments; once quoted JSON values on the command line are rewritten by the platform layer, the process exits immediately.60% similarUnverifiedJSON-RPC 2.0 相比 1.0 引入了具名参数、批量调用和更完善的错误码体系60% similarUnverifiedThe generated JSON is validated through a Code node to ensure that problematic workflows do not pass.59% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1061293API
curl https://kongchang.com/api/v1/knowledge/claims/1061293MCP
get_claim(id=1061293)