Start a Live Activity
start_live_activityStart a Live Activity on the Lock Screen and Dynamic Island. Use this for work with a start and an end that you will report on while it runs — a build, a deploy, a test or capture run, a batch job, a wash cycle, a charge, a delivery. It is the right surface whenever the operator wants to watch progress without opening anything, and the only one that can be. Always end it. title, kind and deepLink are frozen when it starts and cannot be changed by an update, so anything that must move belongs in the content state fields. Calling this again with an id that is already running restarts it, which is visible to the user.
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": {
"externalActivityId": "<externalActivityId>",
"kind": "<kind>",
"title": "<title>",
"state": "<state>"
},
"name": "start_live_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | SF Symbol name, overriding the one `kind` implies. | |
| kind | Yes | Picks the default glyph when no `icon` is set: generic, progress, charging, appliance, job, timer. Frozen once the activity starts. | generic |
| unit | No | Unit shown after `value`. | |
| alert | No | Sends this one push as a visible notification. For state changes worth interrupting someone for — finished, failed — and nothing else; it does not rename the activity. | |
| chart | No | A plot of the number this activity is about — watts climbing, queue depth dropping. Send the whole window on every update. It outranks `progress` for the space, and `items` suppress it entirely on the Lock Screen and Dynamic Island. | |
| items | No | Up to 6 rows, for an activity that is several things at once — three chargers, a queue of jobs, a set of checks. Rows REPLACE the progress bar and SUPPRESS any `chart` on the Lock Screen and Dynamic Island, silently and with no error, so send items or a chart but not both. | |
| state | Yes | Free-form short text for where the run is up to — "running", "Rinse", "waiting for approval". Rendered as text; no value has special meaning, and setting it to "finished" does not end the activity. | |
| title | Yes | The name of the thing. FROZEN for the life of the activity — no update can change what the Lock Screen shows, only a restart can. So it must never carry a value that moves: "CI build #1234" and "Dishwasher" are titles, "42 min left" and "64% charged" are not. Put those in `value`, `progress` or `endsAt`. | |
| value | No | The headline, as a display string. With `items`, an explicit value outranks the derived active-item count. | |
| endsAt | No | When the run is expected to finish. iOS then renders a countdown from the device clock, so you do not need to publish updates just to tick time forward. Prefer this over server-ticked percentages. | |
| signal | No | Contextual meaning of the activity's current state. It changes the renderer-owned accent, symbol, and accessibility wording without changing the free-form state text. | |
| staleAt | No | After this iOS renders the activity as out of date, so a run whose producer has gone quiet says so instead of looking current. Send it on every push, a little past when you next expect to publish. It is the only thing that makes a stalled producer visible to the operator, and it costs nothing when you do keep publishing. | |
| deepLink | No | HTTPS URL opened when the activity is tapped. FROZEN at start, like `title` and `kind`. | |
| progress | No | Progress bar, 0-1. A `chart` outranks it for the space, and `items` replace it entirely. | |
| subtitle | No | A line of prose under the title. Updatable. | |
| statusIcon | No | A second SF Symbol for what the activity is doing right now, drawn beside the main one — bolt.fill while boosting, exclamationmark.triangle.fill when something needs attention. Unlike `icon`, which says what the activity IS, this says what it is DOING, so it is content state and changes on every update. | |
| relevanceScore | No | How this activity ranks against others in Smart Stack on the Lock Screen and Apple Watch; higher wins, with no fixed ceiling. Start low on a long run and raise it as the activity becomes urgent. | |
| externalActivityId | Yes | Your own id for this run. It addresses the activity on every later update and on the end call, so keep it until the end returns 2xx. Starting on an id that is already running RESTARTS it: the running activity is ended and a new one replaces it, which the user sees as one dismissing and another animating in. That is how to change a frozen `title`, `kind` or `deepLink`, and it is not something to do on a tick. | |
| countdownGranularity | No | How the `endsAt` countdown reads. `second` (default) keeps the native ticking clock; `minute` renders a rounded estimate like ~12 min and updates locally at minute boundaries. Ignored without `endsAt`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| pending | Yes | ||
| warnings | Yes | Advisory notes about how this activity will RENDER, on a call that otherwise succeeded. Empty when there is nothing to say. These never affect whether the request worked; act on them anyway, because the operator's Lock Screen is the one thing you cannot look at. | |
| restarted | Yes | True when an activity was already running under this id, so it was ended and replaced rather than started fresh. The user saw one dismiss and another animate in. | |
| apnsResults | Yes | ||
| activityInstanceId | Yes | The server's id for this exact activity. | |
| pushToStartAttempted | Yes | How many devices were sent the push that starts the activity. ZERO means nobody will see this one, or anything else you publish: the operator has no device registered, so tell them to open the 00Widget app and allow notifications rather than continuing to publish. | |
| pushToStartPrunedStale | Yes | Devices that had not run the app in 30 days, so were not sent the start and were removed. They return on their own the next time the app launches. | |
| pushToStartRecentlyActive | Yes | Of the devices sent the start, how many have run the 00Widget app in the last 7 days. Fewer than `pushToStartAttempted` means some were sent it and may never show it; compare `registeredDevices` on your next update. |