{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "NullableString": { "type": [ "string", "null" ] } }, "properties": { "cwd": { "type": "string" }, "hook_event_name": { "const": "UserPromptSubmit", "type": "string" }, "model": { "type": "string" }, "permission_mode": { "enum": [ "default", "acceptEdits", "plan", "dontAsk", "bypassPermissions" ], "type": "string" }, "prompt": { "type": "string" }, "session_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" } }, "required": [ "cwd", "hook_event_name", "model", "permission_mode", "prompt", "session_id", "transcript_path", "turn_id" ], "title": "user-prompt-submit.command.input", "type": "object" }