upload_reference_image
Upload a local PNG/JPEG from the configured directory to get an account-scoped reference_image_id for image-to-image or video first/last-frame tasks.
Instructions
Upload a user-authorized local PNG/JPEG for image-to-image or video first/last frames from the configured dedicated image directory to the original TopMediai upload service. May create a publicly retrievable OSS URL. Removes image metadata, limits size to 5 MiB, verifies login and returns an account-scoped reference_image_id. Upload requires a configured dedicated directory. Does not generate or debit credits; never automatically retry an uncertain upload.
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": {
"file_path": "<file_path>"
},
"name": "upload_reference_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path inside TOPMEDIAI_UPLOAD_ROOT. No network URLs, credentials, symlinks or files outside that directory. |