update_container
Change a single field on a ChemInventory container by supplying its ID, field name, and new value; optionally include a unit when updating container size.
Instructions
Change one field of a container.
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": {
"container_id": "<container_id>",
"field": "<field>",
"value": "<value>"
},
"name": "update_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit name for containersize, e.g. 'g' | |
| field | Yes | containername, cas, containersize, barcode, supplier, dateacquired, comments, cf-<id> (container custom field) or sf-<id> (substance custom field) | |
| value | Yes | New value; for containersize the size, e.g. '250' | |
| container_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |