Publish a card
upsert_cardCreate or replace one dashboard card, for standing state the operator checks on — a balance, a queue depth, today's total. For work with a start and an end that you will report on while it runs, start_live_activity is the better surface: it reaches the Lock Screen and Dynamic Island, where a card only reaches a Home Screen widget on a rationed refresh budget. The id is the identity of the thing being shown, so reuse it on every publish — never embed a timestamp or run id, or each update becomes a new card. Publishing several cards from one snapshot? Use upsert_cards_batch instead.
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": {
"id": "<id>",
"template": "<template>",
"title": "<title>"
},
"name": "upsert_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Stable identity of the thing being shown, reused on every publish so the card updates rather than duplicating. Never embed a timestamp or run id. Letters, digits and . _ : - only, because it is also a URL path segment. | |
| icon | No | SF Symbol name for the card: sun.max, bolt.car, flame, washer, creditcard. | |
| unit | No | Suffix shown after `value`: kW, %, jobs. Prefixes such as currency symbols belong in the formatted `value` instead; use `value: "$338.99"` and omit `unit`, not `value: "338.99"` with `unit: "$"`. | |
| chart | No | The series behind a `chart` card. Republish the whole window every time — nothing is appended and no history is kept. | |
| items | No | Rows. A `list` shows them as rows, ranked as bars when they carry an `amount`; a `history` draws their `status` as pips, oldest first; a `breakdown` splits one bar by their `amount`. | |
| title | Yes | The name of the thing. It renders on one line at caption size, so keep it short and stable — a value that moves belongs in `value`. | |
| value | No | The headline, as a display string already formatted for a person: "3.2", "$338.99", "4m 12s", "Healthy". It is never parsed back into a number. | |
| status | No | Drives the card's tint and badge on every surface. `good`/`warning`/`critical` for health, `running`/`finished`/`paused`/`offline` for lifecycle. | unknown |
| actions | No | Buttons. They are not tied to `template: action` — any template can carry them, so a `chart` card can plot a series and offer a Retry button. `action` is simply the template whose whole point is the buttons, with no visual of its own. How many are drawn depends on the surface: a small widget shows 1, medium 2, large and extra-large 4, and the iOS app and Apple TV show all of them; the Lock Screen accessories show none, and a widget the operator has set to Compact density shows one fewer (none at all on a small one). Order them most useful first, because the tail is what gets cut. Only `role: normal` with `confirm: false` can run straight from a widget; anything else routes through the iOS app for confirmation. A press is delivered to the action's private `webhookId`, or to the account's `default` webhook when none is set. The destination must already be registered under `/v1/integrations/` or the press fails with a 409. Registration needs the `webhook:manage` scope, which an MCP credential does not have — the operator registers webhooks with an API token, from whatever runs each endpoint. | |
| briefing | No | Ordered prose behind a `briefing` card. Keep `value` as the compact conclusion and `subtitle` as its first explanation: old clients render the unknown template as a summary and still show both. | |
| deadline | No | When the thing this card is about is due, drawn as a countdown the device ticks locally. Publish a date here rather than writing the remaining time into `value`: a widget reloads at most twice an hour, so a republished string is wrong for most of the time it is on screen. | |
| deepLink | No | HTTPS URL opened when the card is tapped. Point it at the dashboard or detail page this card summarises. | |
| priority | No | Where this card sits among the tenant's cards. Higher comes first; absent counts as 0 and ties break by `id`, which is the order everything had before. It decides the order of `GET /v1/cards`, the app's dashboard, and which cards fill a Home Screen grid widget that has not been configured with specific ones. | |
| producer | No | Who published this card. Use the operator's own agent or automation name, not a provider logo; compact surfaces omit this attribution to preserve space. | |
| progress | No | How full the thing is, 0-1, drawn as a bar. Required in practice by `template: progress`, ignored where there is nowhere to draw it. Keep `value` as the label, so the card can show both: "184 of 240". | |
| subtitle | No | A short, single-line label under the title or value. It truncates rather than wraps on widgets, so aim for about 40 characters, put essential numbers and qualifiers first, and do not repeat the title. For a chart whose `reference` matters, lead with its formatted meaning and value: "$300 baseline · Mar–Aug 2026". | |
| template | Yes | How the card is drawn. Pick by the shape of the data, not the domain: `summary` for one headline number or short state; `progress` for something filling up; `list` for 2-6 things with their own values; `action` for buttons; `chart` for one number moving over time; `history` for a run of pass/fail outcomes; `breakdown` for a whole split into parts; `briefing` for a conclusion followed by ordered prose; `timeline` for irregular timestamped events and duration spans. When unsure, `summary` degrades best at every widget size. | |
| timeline | No | Timestamped events and spans behind a `timeline` card. Republish the complete fixed window; the server sorts entries and does not append history. | |
| updatedAt | No | When this state was true, as an ISO-8601 instant with seconds and an offset (2026-04-26T18:45:00Z). Omit it and the server stamps the time the publish arrived. | |
| comparison | No | A concise interpretation beside the headline, for example +18 vs Monday. This is distinct from chart style `delta`, which controls bar geometry. | |
| staleAfter | No | After this the widget dims the card into a 'stale' state so the reading is visibly old. A hint only: nothing hides or deletes the card. | |
| statusIcon | No | A second SF Symbol for a runtime state that changes independently of what the card is — bolt.fill while boosting, arrow.up while charging. Drawn at every widget size, including grid cells. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes |