{
  "id": "brave",
  "providerAuthEnvVars": {
    "brave": ["BRAVE_API_KEY"]
  },
  "uiHints": {
    "webSearch.apiKey": {
      "label": "Brave Search API Key",
      "help": "Brave Search API key (fallback: BRAVE_API_KEY env var).",
      "sensitive": true,
      "placeholder": "BSA..."
    },
    "webSearch.mode": {
      "label": "Brave Search Mode",
      "help": "Brave Search mode: web or llm-context."
    }
  },
  "contracts": {
    "webSearchProviders": ["brave"]
  },
  "configContracts": {
    "compatibilityRuntimePaths": ["tools.web.search.apiKey"]
  },
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "webSearch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "apiKey": {
            "type": ["string", "object"]
          },
          "mode": {
            "type": "string",
            "enum": ["web", "llm-context"]
          }
        }
      }
    }
  }
}
