baasix_realtime_enable
Enable realtime updates for a database collection to broadcast insert, update, and delete changes via WebSocket for live data synchronization.
Instructions
Enable realtime for a collection. Changes will be broadcast via WebSocket when data is modified.
The realtime config is stored in the schema definition and can include specific actions to broadcast.
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": {
"collection": "<collection>"
},
"name": "baasix_realtime_enable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | No | Actions to broadcast (default: ["insert", "update", "delete"]) | |
| collection | Yes | Collection name to enable realtime for | |
| replicaIdentityFull | No | Set REPLICA IDENTITY FULL for old values on UPDATE/DELETE (default: false) |