Update image metadata
update_image_metadataReplace an image's stored custom metadata JSON used for filtering image lists; submit the full replacement object or null to clear it.
Instructions
Replace one image's custom metadata (a JSON object you can later filter list_images by). The object replaces the stored one, so send every key to keep; null clears it (PATCH /v1/images/:id).
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": {
"id": "<id>",
"metadata": "<metadata>"
},
"name": "update_image_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Image id, e.g. img_abc123. | |
| metadata | Yes | The full metadata object to store (max 50 top-level keys / 4 KB). It REPLACES the existing metadata (not merged), so include every key you want to keep. Pass null to clear it. |