ERP: Add photos to a product
erp_product_photoAttach photos to a catalog item: the photos the person sent to the bot (their intake captures — the #numbers in «latest intake captures»; never invent one). 'main'=true makes the first new photo the item's main picture (it is main anyway when the item had none). No photo sent yet → ask them to send it in this chat first. Proposed write: one card. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"item": "<item>",
"capture_ids": "<capture_ids>"
},
"name": "erp_product_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| main | No | ||
| capture_ids | Yes |