setRecord
Replace all fields of a record with a provided data object, deleting any existing fields not included. Use updateRecord for partial merges that preserve unspecified fields.
Instructions
Replace ALL fields of a record with the provided data object — any existing fields not in data are deleted. Use updateRecord instead for partial/merge updates that preserve unspecified fields.
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": {
"recordId": "<recordId>",
"label": "<label>",
"data": "<data>"
},
"name": "setRecord"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The new record data to set | |
| label | Yes | Label for the record | |
| recordId | Yes | ID of the record to set | |
| transactionId | No | Optional transaction ID for atomic set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A RushDB record containing system fields and user-defined properties. | |
| message | Yes | ||
| success | Yes |