Get view state
view_get_stateReads a bounded state snapshot attributed to a known view revision. A null view_id means the current page; after the screen has moved on (VIEW_NOT_CURRENT or VIEW_NOT_FOUND), the rendered view_id still addresses that page. Retired hosted state returns an explicit error, and a fresh revision restores hosted synchronization. A page that has saved nothing yet returns empty values with state_revision 0. A new revision of the page (the same page_id) starts with no saved answers unless it is sent with these values as initial_state. A phone-owned screen answers only for pages this connection's sender sent; another sender's page returns VIEW_NOT_FOUND. A person can take minutes to answer. Each read is answered by the phone itself and shares its connection with page delivery; reads about ten seconds apart leave room for delivery on slow phones.
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": {
"device": "<device>"
},
"name": "view_get_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| device | Yes | ||
| view_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||