Add Chat Photos to Board
add_chat_photos_to_boardUse this when the user attaches images in this chat and wants them in Uwear, on the Shoot Board or in a shoot: clothing, a Model, a Location or a reference. Put each attachment in its own field, image_file_1, image_file_2, ... in attachment order, as the chat provides it: ChatGPT passes the file itself, also when you see only a file name or path. Chat attachments only: a web address is refused (ask the user to attach that photo). kinds: {image_file_N: garment|avatar|location|reference} for photos whose kind the user said or is clear (avatar: a person to use as a Model); Uwear sorts the rest. Saves each photo to the library (a repeat is reused), adds it to the board and returns its pile and asset id for propose_brief / update_brief. A photo returned unsure lists two candidates: ask the user and call again with the same files, kinds, sides and back_of. back_of: {image_file_N: image_file_M} when image_file_N is the back of the same garment image_file_M shows from the front (you can see they match): Uwear saves one garment with both photos. sides: {image_file_N: back} for a garment photo that plainly shows a garment's back with no front photo of it here; left out, a photo is its garment's front.
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": {
"image_file_1": "<image_file_1>",
"board_id": "<board_id>"
},
"name": "add_chat_photos_to_board"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | What each photo is, when you can tell (garment: clothing; avatar: a person to use as a Model; location: a place; reference: a pose, mood or styling photo), or the user's answer for one that came back unsure: {image_file_N: kind}. A photo left out is sorted by Uwear. | |
| sides | No | Garment photos only, when you can see which side one shows: {image_file_N: back} for a photo of the garment's back. A photo left out is its garment's front. | |
| back_of | No | Two photos of one garment, when you can see they match: {image_file_N: image_file_M} for image_file_N showing the back of the garment image_file_M shows from the front. Uwear saves one garment with both photos. | |
| board_id | Yes | The open Shoot Board's board_id, from Open Shoot Board or your context. | |
| image_file_1 | Yes | An image attached in this chat, passed as the chat provides it. | |
| image_file_2 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_3 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_4 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_5 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_6 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_7 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_8 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_9 | No | An image attached in this chat, passed as the chat provides it. | |
| image_file_10 | No | An image attached in this chat, passed as the chat provides it. | |
| upload_handles | No | Only after running a previous call's upload_command: {image_file_N: the sha256 it printed for that photo}. Never the attachments themselves: those go in image_file_N. |