JSON Schema Validator
POST /api/skills/json-schema-validate — $0.006 USDC on Base.
{
"instance": { "id": 1 },
"schema": { "type": "object", "required": ["id"], "properties": { "id": { "type": "number" } } }
}
Use this as a cheap gate before paying a larger model.
ok means the check ran. valid means the instance matched the schema. An invalid instance is ok: true, valid: false, with errors filled. ok: false means the schema could not be checked (it is not an object, or a nested schema keyword is the wrong type).