Upload a reference image
upload_referenceSave a reference image as base64 in media/uploads/ for use in media generation prompts, keeping it separate from the gallery and available for image models to work from.
Instructions
Save a reference/source image under media/uploads/ (base64) to use as input for media generation — kept separate from the gallery. Reference it in a generate/refine prompt so Claude or an image model can work from it.
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": {
"project": "<project>",
"name": "<name>",
"content": "<content>"
},
"name": "upload_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Filename with extension, e.g. moodboard.png. | |
| content | Yes | Base64 image bytes (or utf8 text with encoding:'utf8'). | |
| project | Yes | ||
| encoding | No | base64 |