{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://filenametool.com/filename-tool-input.schema.json",
  "documentation": "https://filenametool.com/docs/structured-input/",
  "title": "Filename Tool structured browser input",
  "description": "Fields accepted by the local Structured JSON importer. This is not an HTTP API contract.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "imageDate": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$", "description": "A real calendar date in YYYY-MM-DD form.", "x-browser-selector": "[data-ai-field='imageDate']" },
    "baseName": { "type": "string", "x-browser-selector": "[data-ai-field='baseName']" },
    "detail": { "type": "string", "x-browser-selector": "[data-ai-field='detail']" },
    "format": { "type": "string", "x-browser-selector": "[data-ai-field='format']" },
    "quality": { "type": "string", "x-browser-selector": "[data-ai-field='quality']" },
    "compression": { "type": "string", "description": "Alias for quality.", "x-browser-selector": "[data-ai-field='quality']" },
    "colorSpace": { "type": "string", "x-browser-selector": "[data-ai-field='colorSpace']" },
    "durationHours": { "type": "number", "minimum": 0, "x-browser-selector": "[data-ai-field='durationHours']" },
    "durationMinutes": { "type": "number", "minimum": 0, "maximum": 59, "x-browser-selector": "[data-ai-field='durationMinutes']" },
    "durationSeconds": { "type": "number", "minimum": 0, "maximum": 59, "x-browser-selector": "[data-ai-field='durationSeconds']" },
    "suffix": { "type": "string", "x-browser-selector": "[data-ai-field='suffix']" },
    "photographer": { "type": "string", "x-browser-selector": "[data-ai-field='photographer']" },
    "camera": { "type": "string", "x-browser-selector": "[data-ai-field='camera']" },
    "imageReference": { "type": "string", "x-browser-selector": "[data-ai-field='imageReference']" },
    "version": { "type": "string", "x-browser-selector": "[data-ai-field='version']" },
    "width": { "type": "number", "minimum": 0, "x-browser-selector": "[data-ai-field='width']" },
    "height": { "type": "number", "minimum": 0, "x-browser-selector": "[data-ai-field='height']" },
    "sort": { "type": "string", "x-browser-selector": "[data-ai-field='sort']" },
		"useDate": { "type": "boolean" }, "useSort": { "type": "boolean" }, "useTime": { "type": "boolean", "description": "Alias for useSort." }, "sortFirst": { "type": "boolean" },
    "useDimensions": { "type": "boolean" }, "useCompression": { "type": "boolean" },
    "usePhotographer": { "type": "boolean" }, "useCamera": { "type": "boolean" },
    "useColorSpace": { "type": "boolean" }, "useReference": { "type": "boolean" },
    "flags": { "type": "array", "uniqueItems": true, "items": { "type": "string" }, "description": "Built-in flag IDs." }
  },
  "examples": [{ "imageDate": "2026-07-17", "baseName": "Nightfall", "detail": "Scene 07 Take 03", "format": "mp4", "width": 4096, "height": 2160 }]
}
