{
  "name": "BoutiqueRugs Shopping Agent",
  "description": "Autonomous commerce agent for BoutiqueRugs.com — searches the rug catalog, answers product questions, and creates a pre-built Shopify cart with a hosted checkout URL the shopper can complete.",
  "url": "https://boutiquerugs-companion.boutiquerugs-administrator.workers.dev/a2a",
  "supportedInterfaces": [
    {
      "url": "https://boutiquerugs-companion.boutiquerugs-administrator.workers.dev/a2a/jsonrpc",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    },
    {
      "url": "https://boutiquerugs-companion.boutiquerugs-administrator.workers.dev/a2a/json",
      "protocolBinding": "HTTP+JSON",
      "protocolVersion": "1.0"
    }
  ],
  "provider": {
    "organization": "BoutiqueRugs",
    "url": "https://boutiquerugs.com"
  },
  "iconUrl": "https://boutiquerugs.com/favicon.ico",
  "version": "0.1.0",
  "protocolVersion": "0.3.0",
  "documentationUrl": "https://boutiquerugs-companion.boutiquerugs-administrator.workers.dev/docs/api",
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "stateTransitionHistory": false,
    "extendedAgentCard": false
  },
  "securitySchemes": {
    "shopifyOAuth": {
      "type": "oauth2",
      "description": "Shopify OAuth 2.0 for merchant-scoped API access.",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://boutiquerugs.myshopify.com/admin/oauth/authorize",
          "tokenUrl": "https://boutiquerugs.myshopify.com/admin/oauth/access_token",
          "scopes": {
            "read_products": "Read products and collections",
            "read_product_listings": "Read published products"
          }
        }
      }
    }
  },
  "security": [
    {
      "shopifyOAuth": [
        "read_products"
      ]
    }
  ],
  "defaultInputModes": [
    "application/json",
    "text/plain"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown"
  ],
  "skills": [
    {
      "id": "search-products",
      "name": "Search rugs",
      "description": "Free-text search across the BoutiqueRugs catalog. Returns products matching the query with handle, title, vendor, price range, and featured image.",
      "tags": [
        "catalog",
        "search",
        "products",
        "rugs"
      ],
      "examples": [
        "Find a 5x8 navy blue runner rug",
        "Show me shag rugs under $300",
        "Hand-knotted wool rugs in 8x10"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ]
    },
    {
      "id": "browse-collections",
      "name": "Browse collections",
      "description": "List rug collections/categories and paginate products within a collection.",
      "tags": [
        "catalog",
        "collections",
        "browse"
      ],
      "examples": [
        "What collections do you have?",
        "Show me everything in the shag-rugs collection"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ]
    },
    {
      "id": "create-checkout",
      "name": "Create a Shopify checkout session",
      "description": "POST line items (variant_id + quantity) to /acp/checkout/session and receive a Shopify-hosted checkout URL. The shopper completes payment at the returned URL. Payment data never touches this service.",
      "tags": [
        "commerce",
        "checkout",
        "cart",
        "acp"
      ],
      "examples": [
        "Add this rug to my cart and give me a checkout link",
        "Build a cart with the two rugs I picked, then hand me the URL"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json"
      ]
    }
  ]
}