Add an item from a photo
add_item_from_photoAdds a home-inventory item from a photo, saves it immediately with the image, and uses background vision to suggest its name, brand, model and serial for confirmation.
Instructions
Creates a new item from a photo: it's saved straight away (as "New item" unless you give a name) with the photo attached, and the vision model reads it in the background. About 20 seconds later get_item shows its suggested name, brand, model and serial — confirm with the person, then apply with update_item. Use it when the person sends a picture of something to add; for a photo of something already in the inventory use add_photo. Put it somewhere with locationId or containerItemId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The image (or PDF, for a document) as base64; no data: prefix | |
| name | No | Its name, if the person said it; otherwise it's "New item" until confirmed | |
| filename | No | The file's name, with its extension ("receipt.pdf") | photo.jpg |
| locationId | No | Where it's kept, from list_locations | |
| containerItemId | No | Or the box it's in (an item with isContainer) |