tokportal_upload_image_direct
Upload an image file directly to TokPortal for storage, with automatic conversion of HEIF/HEIC to JPEG if needed. Specify bundle ID and purpose for integration.
Instructions
Upload an image file directly. Uploads multipart/form-data directly through TokPortal and returns storage details. HEIF/HEIC may be converted to JPEG.
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>",
"bundle_id": "<bundle_id>"
},
"name": "tokportal_upload_image_direct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | Multipart form field purpose. | carousel |
| bundle_id | Yes | Multipart form field bundle_id. | |
| file_path | Yes | Local path to upload for multipart field file. | |
| idempotency_key | No | Optional Idempotency-Key header for safe retries. |