{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-capability-next-schema.json",
  "title": "CapabilityNext",
  "description": "The call to make next, in the caller's dialect: an MCP tool call `{tool, arguments}` when the request sent `X-Beat-Client: mcp`, otherwise a complete curl command. Copy it and replace the `<placeholders>`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatapi-web-search-api-openapi.yml#/components/schemas/CapabilityNext",
  "type": "object",
  "required": [
    "action"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "search",
        "inspect",
        "run",
        "status",
        "result",
        "none"
      ]
    },
    "call": {
      "oneOf": [
        {
          "type": "string",
          "description": "curl command against https://api.beatapi.io."
        },
        {
          "type": "object",
          "required": [
            "tool",
            "arguments"
          ],
          "properties": {
            "tool": {
              "type": "string",
              "enum": [
                "capabilities_search",
                "capabilities_inspect",
                "capabilities_run"
              ]
            },
            "arguments": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      ]
    },
    "note": {
      "type": "string"
    }
  }
}