Create an upload URL
create_upload_urlA one-time URL to upload a file straight to storage (PUT the raw bytes; valid 30 minutes): a reference image (kind image, purpose reference) for the reference_asset_ids of generate_character_sheet and friends. Voice recordings are not accepted. Returns the asset id the file will have.
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": {
"kind": "<kind>",
"purpose": "<purpose>"
},
"name": "create_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Type of file to upload: image, audio or video. | |
| bytes | No | File size, to fail early when too large | |
| label | No | Optional short name shown for the uploaded file. | |
| purpose | Yes | What the file is for; "reference" makes it a reference picture for generation. | |
| drama_id | No | The drama id (drm_…), from list_dramas or create_drama. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||