Upload a photo
upload_photoUpload a base64 clothing photo (up to 300 KB) to get a single-use upload_id valid for 10 minutes, so add_item can attach the image to a new wardrobe item.
Instructions
Upload a photo of a clothing item so add_item can use it. Pass the image as base64. Keep it small: the limit is 300 KB, so use a reduced-size image. Returns an upload_id for add_item. The id is good for 10 minutes and works once.
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_base64": "<image_base64>",
"mime_type": "<mime_type>"
},
"name": "upload_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | File name, e.g. blue-shirt.jpg | |
| mime_type | Yes | Image type | |
| image_base64 | Yes | The image bytes, base64-encoded, without a data: prefix |