Write app storage
app_state_setWrites to app storage from the widget. Widget only.
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": {
"hub": "<hub>",
"id": "<id>",
"key": "<key>",
"value": "<value>"
},
"name": "app_state_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | app id | |
| hub | Yes | hub key | |
| key | Yes | storage key, 1 to 100 characters | |
| value | Yes | any JSON value; null deletes the key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| seq | Yes | ||
| value | Yes | the stored JSON value | |
| updated_by | Yes |