
Links
Try the demo
Launch the live widget experience.
View source on GitHub
Browse the full example code.
Skybridge APIs used
registerWidget— with_metafor hidden card data andresourceDomainsCSP configuseToolInfo— access the drawn card’s metadata (word + illustration)useCallTool— draw new cards from within the widgetuseDisplayMode— switch to PiP when the game startsuseSendFollowUpMessage— notify the AI of newly drawn cardsuseUser— adapt the displayed word to the user’s locale