set_persistent_data
Store a value in an OBS persistent-data slot so the AI can remember information across tool calls, such as giveaway winners.
Instructions
Set a value in an OBS persistent-data "slot" — useful for storing state the AI needs to remember across tool calls (e.g. giveaway winners).
Args: realm: "OBS_WEBSOCKET_DATA_REALM_GLOBAL" or "OBS_WEBSOCKET_DATA_REALM_PROFILE". slot_name: Name of the slot to write. slot_value: Any JSON-serializable value.
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": {
"realm": "<realm>",
"slot_name": "<slot_name>",
"slot_value": "<slot_value>"
},
"name": "set_persistent_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | ||
| slot_name | Yes | ||
| slot_value | Yes |