Unpack item from container
unpack_itemTake an item out of its container. Its current location and holder are set from the container's effective position at that moment (a snapshot: it stops following the container). No change if the item is not packed. Setting a current location or holder on a packed item with assign_item unpacks it first, in the same call. Requires the manager role.
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": {
"itemId": "<itemId>"
},
"name": "unpack_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Item id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Item id | |
| name | No | Item name | |
| status | No | Condition: available | in_repair | defect | lost | retired ("available" means not defect/lost/retired — the item may still be borrowed) | |
| webUrl | No | Link to this item in the web app, for a person to open. Absent when the deployment has no public address configured | |
| isDraft | No | Present and true only for an unfinished draft capture | |
| modelId | No | The item's model — pass it as create_order lines[].modelId to order any instance of this model | |
| category | No | Category name | |
| quantity | No | How many this row stands for — only on quantity-tracked pools. To count a pool, SUM this; to count serialized items, count rows | |
| container | No | The container this item is packed into, if any | |
| modelName | No | The model's name | |
| compartment | No | The compartment of that container the item sits in (absent = directly in the container) | |
| description | No | Item description | |
| primaryCode | No | The code printed on the item's asset tag — how a human tells two identical models apart. Absent when no code is attached | |
| homeLocation | No | Where the item belongs | |
| trackingMode | No | "quantity" for a stock pool counted by amount. Absent = a serialized item, i.e. this row IS one physical thing | |
| contentsCount | No | Direct contents count — containers only | |
| currentHolder | No | Person currently holding it | |
| currentLocation | No | Where the item is now | |
| effectiveHolder | No | Holder followed through the container chain | |
| effectiveLocation | No | Location followed through the container chain | |
| responsiblePerson | No | Person responsible |