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