Merge into an item's data
merge_item_dataDeep-merge a value into an item's data, or into the value at pointer: fields you don't mention are left alone, so this is the safe way to change some fields, including on lists with guard indexes. Arrays are concatenated, not replaced (use patch_item_data or replace_item_data at the array's pointer to replace one). Pass the etag you read as ifMatch. 1 request.
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": {
"list": "<list>",
"item": "<item>"
},
"name": "merge_item_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The value to merge in | |
| item | Yes | The item: its id or alias value (a deleted item only by id) | |
| list | Yes | The list: its id or pathName | |
| ifMatch | No | The etag you read the item with. The write only happens if nobody has changed the item since; otherwise it fails with ITEM_PRECONDITION_FAILED and nothing is written. Pass it whenever the write is based on something you read | |
| pointer | No | A JSON pointer (RFC 6901) into the item's data, e.g. /address/city or /scores/0. Leave out for the whole data | |
| returnData | No | Return the item's data after the write (default: metadata only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | Yes | ||
| item | Yes |