Paste a JSON Schema and get a ready-to-paste instruction telling an LLM (ChatGPT, Claude, Gemini, ...) exactly what structured JSON to return. Supports a documented subset of JSON Schema — type, properties/required/additionalProperties, items, enum, min/max, minLength/maxLength, pattern, minItems/maxItems, description — recursively through nested objects and arrays. Runs entirely in your browser. Check what the model actually returns with the AI Response Validator.
curl -sS -X POST https://devops.majbase.com/json-schema-to-prompt/api -H "Content-Type: application/json" -d '{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"task":"Extract the name."}'
Returns {"prompt": "..."}, or {"error": "..."}.