{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "NullableString": { "type": [ "string", "null" ] } }, "properties": { "agent_id": { "type": "string" }, "agent_type": { "type": "string" }, "cwd": { "type": "string" }, "hook_event_name": { "const": "PostToolUse", "type": "string" }, "model": { "type": "string" }, "parent_tool_use_id": { "description": "The outer shell hook's tool_use_id when Codex intercepts an apply_patch command.", "type": "string" }, "permission_mode": { "enum": [ "default", "acceptEdits", "plan", "dontAsk", "bypassPermissions" ], "type": "string" }, "session_id": { "type": "string" }, "tool_input": true, "tool_name": { "type": "string" }, "tool_response": true, "tool_target_is_remote": { "description": "True means the hook must skip local reads of the target. For apply_patch, MCP hooks receive true because their server may use a separate filesystem. False confirms a command hook shares the target filesystem. Omission leaves ownership unknown.", "type": "boolean" }, "tool_use_id": { "type": "string" }, "transcript_path": { "$ref": "#/definitions/NullableString" }, "turn_id": { "description": "Codex extension: expose the active turn id to internal turn-scoped hooks.", "type": "string" }, "workspace_cwd": { "description": "The hook owner's workspace directory before workdir or cd for an intercepted patch.", "type": "string" } }, "required": [ "cwd", "hook_event_name", "model", "permission_mode", "session_id", "tool_input", "tool_name", "tool_response", "tool_use_id", "transcript_path", "turn_id" ], "title": "post-tool-use.command.input", "type": "object" }