{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://onedevtoolkit.com/specs/recipe-format.json",
  "title": "OneDevToolkit Recipe Format",
  "description": "Open format for multi-step local tool workflows. Share via URL hash or JSON import.",
  "type": "object",
  "required": ["version", "name", "steps"],
  "properties": {
    "schema": { "type": "string", "format": "uri" },
    "version": { "type": "integer", "const": 1 },
    "name": { "type": "string", "minLength": 1 },
    "description": { "type": "string" },
    "starterId": { "type": "string" },
    "topic": { "type": "string" },
    "steps": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["tool"],
        "properties": {
          "tool": { "type": "string", "description": "Tool slug, e.g. json-formatter" },
          "label": { "type": "string" }
        }
      }
    }
  },
  "additionalProperties": true
}
