chaprola_update_record
Update fields in a single record matching a where clause in a project's data file. Handles sort-key changes by ignoring the old record and appending the updated record to the merge file.
Instructions
Update fields in a single record matched by a where clause. If no sort-key changes, updates in place; otherwise marks old record ignored and appends to merge file.
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": {
"project": "<project>",
"file": "<file>",
"where": "<where>",
"set": "<set>"
},
"name": "chaprola_update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | Yes | Field name → new value pairs to update | |
| file | Yes | Data file name (without extension) | |
| where | Yes | Field name → value pairs to identify exactly one record | |
| project | Yes | Project name |