upload_image
Upload images to Google Files API for use as reference, first, or last frames in video generation. Returns a reusable file URI for 48 hours.
Instructions
Upload an image to Google Files API for use as reference, first frame, or last frame in video generation. Returns a fileUri that can be reused for 48 hours. This is the most token-efficient way to pass images to video generation.
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": {
"source": "<source>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source type: 'url' to download from web, 'file_path' for local file | |
| url | No | URL to download (if source='url') | |
| filePath | No | Local file path (if source='file_path') | |
| displayName | No | Optional display name for the uploaded file |