// In an app: import { setupProductCard } from '@aparte/plugin-cards/product';
const { setupProductCard } = window.apartePlugins.cards.product;
setupProductCard({ tool: 'search_products' });
// The call is still running: the card draws its skeleton, with what the input already says.
document.querySelector('aparte-chat-bubble').setSegments([{
id: 's1', type: 'tool_call', status: 'pending',
toolCall: { id: 'c-s1', name: 'search_products', input: { query: 'wireless headphones' } },
}]);