add_alias
Record an alias that maps a raw or alternate name to an existing HomeStock item, preventing duplicate inventory entries and incorrect repurchase cycles.
Instructions
Teach HomeStock that a raw string means an item it already knows.
Four input paths produce four vocabularies for one thing: a barcode gives "tesco british semi skimmed milk 2.27l", a receipt line gives "tesco semi skmd milk", a person types "milk". Without this they become three items with three wrong repurchase cycles. Resolve a name once and record it here rather than resolving it on every ingest.
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": {
"alias": "<alias>",
"item": "<item>"
},
"name": "add_alias"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| alias | Yes |