Upload a photo to use as a generation reference
upload_reference_imageStores a photo (imageBase64 or sourceUrl) in TASVR for use as a reference, optionally tagged with a role. Added to the library only when saveToLibrary is true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_reference_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | What this photo is for (from list_reference_roles). Stored with the upload and returned; pass the same role in generate_image's references. | |
| label | No | A short human-readable name, e.g. "Blue serum bottle" or "3/4 turn pose ref". | |
| mimeType | No | Required if imageBase64 is a bare base64 string (not a data: URI, which already carries its own type). | |
| sourceUrl | No | An externally-hosted image URL to fetch and re-host. Max 10MB, jpeg/png/webp/gif only. | |
| imageBase64 | No | Base64-encoded image bytes, OR a full data URI ("data:image/png;base64,...."). Max 10MB decoded. | |
| saveToLibrary | No | Also keep this image in the human's reference library. Default false. Only set true after the human has said they want to keep it — ask them first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| url | Yes | ||
| role | No | ||
| referenceId | No | ||
| savedToLibrary | Yes |