// In an app: import { setupMediaCard } from '@aparte/plugin-cards/media';
const { setupMediaCard } = window.apartePlugins.cards.media;
setupMediaCard({ tool: 'generate_image' });
// 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: 'generate_image', input: { prompt: 'Mountains at dawn, layered, flat illustration' } },
}]);