Upload image
upload_imageAdd an image to the user's library and return its file id, for use as input to generation, reference and timeline tools. Provide exactly one of imageBase64 (raw base64 or a data: URL) or imageUrl (a public https URL). Content is safety-scanned like a normal upload.
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_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Optional file name, used with imageBase64 to help detect the type. | |
| imageUrl | No | Public https URL of an image (port 443, no credentials). | |
| imageBase64 | No | Base64-encoded image bytes, or a data: URL. |