upload_base64_file
Upload base64-encoded file content to ImageKit as a named media asset; optionally set folder, tags, privacy, overwrite, and custom metadata.
Instructions
Upload a file to ImageKit from base64 encoded data
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": {
"base64Data": "<base64Data>",
"fileName": "<fileName>"
},
"name": "upload_base64_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to associate with the file | |
| folder | No | Destination folder path | / |
| fileName | Yes | Name for the uploaded file | |
| base64Data | Yes | Base64 encoded file content (with or without data URI prefix) | |
| isPrivateFile | No | Whether file should be private | |
| overwriteFile | No | Whether to overwrite existing file with same name | |
| customMetadata | No | Custom metadata key-value pairs | |
| customCoordinates | No | Custom focus coordinates for cropping (x,y,width,height) | |
| useUniqueFileName | No | Generate unique filename to avoid conflicts |