optimize_card
Optimizes Adaptive Cards by adjusting structure and styling according to chosen goals (accessibility, performance, compactness, modernity, readability) and target host application.
Instructions
Optimize an existing Adaptive Card. Accepts card JSON or a cardId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"card": "<card>"
},
"name": "optimize_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes | The Adaptive Card JSON object or cardId to optimize | |
| goals | No | Optimization goals. Default: all | |
| host | No | Target host app |