{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "LiveComponent Action Request", "description": "Schema for validating LiveComponent action requests", "type": "object", "required": ["method", "params", "state", "_csrf_token"], "properties": { "method": { "type": "string", "description": "Component action method name", "minLength": 1, "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" }, "params": { "type": "object", "description": "Action parameters (key-value pairs)", "additionalProperties": true }, "state": { "type": "object", "description": "Current component state", "additionalProperties": true }, "_csrf_token": { "type": "string", "description": "CSRF token for security validation", "minLength": 1 }, "fragments": { "type": "array", "description": "Optional fragment names for partial rendering", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true } }, "additionalProperties": false }