src/tool
The create_teams_card Mastra tool: a model describes a card in the small
card.CardSpec vocabulary and gets back a compiled Adaptive Card
document. Unlike send_email, building a card is a pure, side-effect-free
transform - nothing leaves the building - so it is NOT approval-gated: the
card is data the app then decides what to do with (render it in a preview,
post it to a Teams incoming webhook, attach it to a bot reply).
App-integrated agents should consume plugins.teams.toolkit() so calls run
through the owning plugin. This standalone factory captures an explicit
runtime or creates an isolated direct-execution runtime from its config.