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": "..."}.
Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:
~/.claude/skills/json-schema-to-prompt/SKILL.md