update_live_activity
Updates every running Live Activity or Android Live Update for a contact, or all devices via broadcast, with new content state and optional alert.
Instructions
Update every running copy of a contact's Live Activity (one per device, iOS and Android Live Updates) with new content state. Requires email or subscriberId, or broadcast: true to update every signed-in device running the activityId (for activities started for a segment, list or tag). Add an alert to light the screen. Returns tokenCount 0 when no running copy has reported an update token.
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": {
"activityId": "<activityId>",
"contentState": "<contentState>"
},
"name": "update_live_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alert | No | Alert shown with the push: title and/or body, plus an optional sound name such as "default". | |
| No | Contact whose activity it is. Provide email or subscriberId, or set broadcast instead. | ||
| priority | No | high (default) delivers now and counts against Apple's update budget; low does not count against it. Pushes with an alert always go at high priority. | |
| broadcast | No | true: send to every signed-in device running this activityId, of any contact, e.g. an activity started for a segment, list or tag. Use instead of email/subscriberId (ignored when either is set), never for a per-person id like an order. Needs the campaigns:send scope. | |
| companyId | No | Company ID. If not provided, uses the currently selected company. | |
| staleDate | No | When iOS shows the activity as out of date: Unix seconds or an ISO 8601 date. | |
| activityId | Yes | Your id for this activity, e.g. "order-1234" (1-128 letters, digits, ".", ":", "-", "_"). Start sets it; update and end target it. | |
| contentState | Yes | Your Swift ContentState as a JSON object; Android apps receive the same object in their Live Update renderer. Date fields decode as seconds since 2001-01-01 on iOS unless your struct decodes them differently. | |
| subscriberId | No | Subscriber whose activity it is. | |
| relevanceScore | No | Orders a person's concurrent activities; higher shows first (0-1000000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result. | |
| event | No | start, update or end. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| jobIds | No | Queued delivery job IDs, one per batch. | |
| message | No | Human-readable status, confirmation, or next-step message. | |
| success | No | Whether the Sequenzy operation succeeded. | |
| warnings | No | Non-fatal cautions about content, permissions, or follow-up actions. | |
| platforms | No | tokenCount per platform: {ios, android}. iOS goes through APNs, Android Live Updates through FCM. | |
| activityId | No | The activity the push targets. | |
| tokenCount | No | Devices the push was queued for; 0 means nothing was sent. | |
| contactCount | No | Distinct contacts those devices belong to: 0 when nothing was sent, at most 1 for a per-contact call, and the contacts reached for a segment, list, tag or broadcast. |