scan_add_item
Scan a barcode to add an item to your inventory. Automatically identifies product details, then lets you specify storage location, quantity, and expiry date.
Instructions
通过扫描条形码添加物品。系统会自动识别物品信息,用户只需补充存放位置等信息。
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": {
"barcode": "<barcode>"
},
"name": "scan_add_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | 条形码(必填) | |
| quantity | No | 数量,默认为1 | |
| expiryDate | No | 过期日期,格式 YYYY-MM-DD | |
| locationId | No | 存放位置ID | |
| locationName | No | 存放位置名称,如"冰箱"、"柜子" |