Shows the customer visual product cards with images, prices, and add-to-cart buttons inside the chat. Should be called after every product search or detail lookup so the customer can see and interact with results visually.
| Platform | Status | Notes |
|---|
| iOS | Yes | Renders native SwiftUI product cards with images and add-to-cart buttons in a carousel |
| Android | Planned | Not yet implemented — Android lists products in text responses |
Description
Display product cards with images, prices, and add-to-cart buttons
Parameters
| Name | Type | Required | Default | Description |
|---|
product_codes | string | Yes | — | Comma-separated product codes to display from previous search/detail results |
Response
| Field | Type | Description |
|---|
displayed | boolean | Whether the product cards were rendered |
count | integer | Number of products displayed |
Error Codes
| Code | Description |
|---|
INVALID_PARAMS | Missing or empty product_codes |
Source Files
- iOS:
one-app-ios-chat/Chat/Sources/Chat/MCP/EcommerceMCPServer.swift