upload_file
Upload a local file to ImageKit with optional folder, filename, tags, privacy, metadata, and overwrite or unique-name settings.
Instructions
Upload a local file to ImageKit
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": {
"filePath": "<filePath>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to associate with the file | |
| folder | No | Destination folder path | / |
| fileName | No | Name for the uploaded file (defaults to original filename) | |
| filePath | Yes | Local path to the file to upload | |
| 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 |