Write a drop's stored data
dropyour_write_dataWrite a drop's app data — replace the shared-memory state (the JSON key/value object mirroring the app's localStorage), so you can update what the app holds (mark a task done, add a row…). Read it first with read_data, modify the object, write it back WHOLE. Only works on a drop with server memory (an account drop) — an anonymous drop's data lives in the browser and can't be written here. expectedVersion (from read_data) is REQUIRED: the write is rejected (version_conflict) if the data changed meanwhile — re-read and retry, so you never overwrite blindly. For a fresh state, read_data returns version 0. With an account token, owned drops need no managementToken.
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": {
"dropId": "<dropId>",
"data": "<data>",
"expectedVersion": "<expectedVersion>"
},
"name": "dropyour_write_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The FULL new app state as a JSON object (key/value, ≤1MB). It replaces the current state. | |
| dropId | Yes | ||
| expectedVersion | Yes | REQUIRED — the version returned by read_data. If stale, the write is refused (version_conflict); re-read and retry. Use 0 for a fresh (empty) state. | |
| managementToken | No |