Skip to main content

show_products

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 Support

PlatformStatusNotes
iOSYesRenders native SwiftUI product cards with images and add-to-cart buttons in a carousel
AndroidPlannedNot yet implemented — Android lists products in text responses

Description

Display product cards with images, prices, and add-to-cart buttons

Parameters

NameTypeRequiredDefaultDescription
product_codesstringYesComma-separated product codes to display from previous search/detail results

Response

FieldTypeDescription
displayedbooleanWhether the product cards were rendered
countintegerNumber of products displayed

Error Codes

CodeDescription
INVALID_PARAMSMissing or empty product_codes

Source Files

  • iOS: one-app-ios-chat/Chat/Sources/Chat/MCP/EcommerceMCPServer.swift