Render HTML on multiple screens
display_broadcast_htmlInstalls the same self-contained HTML on an explicit list of at least two distinct authorized screens (the device IDs or names of the caller's screens), as one independent display operation per screen. There is no all-screens target. With page_id each screen keeps it as the same page, updated by a later broadcast with that page_id.
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": {
"html": "<html>",
"devices": "<devices>"
},
"name": "display_broadcast_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| title | No | ||
| devices | Yes | ||
| page_id | No | The page's name of the caller's choosing, which becomes its view_id. A later send with the same page_id is a new revision shown in that page's place; each revision has its own saved state, which starts empty unless initial_state supplies earlier answers. | |
| runtime | No | ||
| ttl_seconds | No | Seconds the screen shows the page before it returns to its Start page (null: until another page replaces it). It does not keep the display lit: the phone turns its display off after its own screen timeout unless the owner's Keep screen awake setting is on (screen_settings.keep_screen_awake in the screen's status). | |
| source_label | No | ||
| initial_state | No | Saved answers the new page starts with, written once when the screen first admits it, before its scripts run. A new revision of a page (the same page_id) receives no answers from earlier revisions otherwise. Example: the saved state of page_id "bookclub-vote" held values {"book": "Emma"}; the revision sent with page_id "bookclub-vote" and initial_state {"book": "Emma"} reads "Emma" from getState("book") and can show it selected. | |
| security_mode | No | normal | |
| replace_policy | No | activate_when_healthy | |
| client_request_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||