{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GetInfo Response",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name of the plugin."
    },
    "vendor": {
      "type": "string",
      "description": "Company or author name."
    },
    "version": {
      "type": "string",
      "description": "Plugin version (semver recommended)."
    },
    "apiVersion": {
      "type": "integer",
      "description": "API version the plugin was built against. Currently 1."
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of method names this plugin supports (camelCase)."
    },
    "menus": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MenuItem"
      },
      "description": "Menu items to add to the host application's UI."
    },
    "hasSettings": {
      "type": "boolean",
      "description": "If true, the host adds a Settings item to the plugin menu."
    }
  },
  "required": [
    "name",
    "version",
    "apiVersion",
    "capabilities"
  ],
  "$defs": {
    "MenuItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for this menu item."
        },
        "type": {
          "type": "string",
          "description": "'action' (default) or 'separator'."
        },
        "label": {
          "type": "string",
          "description": "Display text. Supports & for accelerator keys."
        },
        "location": {
          "type": "string",
          "description": "Where to place the item: plugin, file, or tools (case-insensitive). Items with any other value, including toolbar and context:iborder, are ignored in API v1."
        },
        "icon": {
          "type": "string",
          "description": "Reserved. Ignored by both hosts in API v1."
        },
        "shortcut": {
          "type": "string",
          "description": "Keyboard shortcut (e.g. Ctrl+Shift+O)."
        },
        "requiresOpenProject": {
          "type": "boolean",
          "description": "Initial enabled state, and the fallback when GetMenuItemState returns no entry for this item. Default false."
        }
      },
      "required": [
        "id",
        "location"
      ],
      "description": "A menu item declared by the plugin in GetInfo."
    }
  }
}