Create image upload link
create_upload_urlGet a one-time signed URL to upload a LOCAL image file straight from your machine — the bytes never pass through the model (the fix for files too big to inline as base64). Give the same slot + target as upload_image (slot "avatar" + entryId, or slot "scene" + scenarioId) and the filename (sets the image type). Returns { uploadUrl, method:"PUT", contentType, expiresInSeconds, howTo }. Then run: curl -X PUT --data-binary @ -H "Content-Type: " "" — the PUT response JSON has the hosted { url }. The URL is single-use and expires in 15 minutes. The image is resized to Lunafic’s sizes on upload, same as upload_image. The scenario COVER is editor-only and cannot be uploaded here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | avatar = entry/character avatar; scene = a playable image. | |
| entryId | No | Required for slot "avatar". | |
| filename | Yes | Original filename (detects the image type; PNG/JPEG, GIF accepted). | |
| scenarioId | No | Required for slot "scene". Accepts the scenario (world) id OR its backing projectId. |