JSON Mode Schema Builder
Build structured output schemas for LLM tool-calling
string
number
boolean
array
object
Required
string
number
boolean
array
object
Required
string
number
boolean
array
object
Required
Add property
OpenAI
Anthropic
Copy
{ "type": "json_schema", "json_schema": { "name": "response", "strict": true, "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The user name" }, "score": { "type": "number", "description": "Numeric score 0-100" }, "active": { "type": "boolean", "description": "Is account active" } }, "required": [ "name", "score" ] } } }