{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "allOf": [ { "if": { "properties": { "decision": { "const": "block" } }, "required": [ "decision" ] }, "then": { "properties": { "reason": { "pattern": ".*\\S.*", "type": "string" } }, "required": [ "reason" ] } } ], "definitions": { "BlockDecisionWire": { "enum": [ "block" ], "type": "string" }, "PostToolUseHookSpecificOutputWire": { "additionalProperties": false, "properties": { "additionalContext": { "default": null, "type": [ "string", "null" ] }, "hookEventName": { "const": "PostToolUse", "type": "string" }, "updatedMCPToolOutput": { "default": null, "type": "null" } }, "required": [ "hookEventName" ], "type": "object" } }, "properties": { "continue": { "default": true, "type": "boolean" }, "decision": { "anyOf": [ { "$ref": "#/definitions/BlockDecisionWire" }, { "type": "null" } ], "default": null }, "hookSpecificOutput": { "anyOf": [ { "$ref": "#/definitions/PostToolUseHookSpecificOutputWire" }, { "type": "null" } ], "default": null }, "reason": { "default": null, "type": [ "string", "null" ] }, "stopReason": { "default": null, "type": [ "string", "null" ] }, "suppressOutput": { "const": false, "default": false, "type": "boolean" }, "systemMessage": { "default": null, "type": [ "string", "null" ] } }, "title": "post-tool-use.command.output", "type": "object" }