add_inventory_product_photo
Add a photo to an inventory product by providing a local file path, remote URL, or base64 data.
Instructions
Add a photo to an inventory product using Huly's product photos collection. Provide exactly one of filePath, fileUrl, or data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | Inventory product ID or exact product name. Pass category when duplicate product names may exist. | |
| category | No | Optional category ID or exact category name used to disambiguate duplicate product names. | |
| filename | Yes | Name of the file to attach to the inventory product. | |
| contentType | Yes | MIME type of the file, such as image/png or application/pdf. | |
| filePath | No | Local file path to upload. Mutually exclusive with fileUrl and data. | |
| fileUrl | No | Remote URL to fetch and upload. Mutually exclusive with filePath and data. | |
| data | No | Base64-encoded file data for small files. Mutually exclusive with filePath and fileUrl. | |
| description | No | Optional media description. Use null on update to clear it. | |
| pinned | No | Whether the media item should be pinned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent. | |
| warnings | No | Optional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload. |