Write a storage object (client)
nakama_write_storage_objectStore or update player data as the authenticated user. Specify collection, key, and value; use version '*' to require the object not already exist.
Instructions
Write or update a single storage object as the authenticated player (call nakama_authenticate first). Pass value as an object or JSON string. Use version '*' to require the object not already exist.
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>",
"key": "<key>",
"value": "<value>"
},
"name": "nakama_write_storage_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name. | |
| key | Yes | Object key. | |
| value | Yes | Object value (object or JSON string). | |
| version | No | Optimistic-concurrency version; '*' means must-not-exist. | |
| permission_read | No | 0=none, 1=owner (default), 2=public. | |
| permission_write | No | 0=none, 1=owner (default). |