Get a photo upload link
create_upload_linkMake a one-hour link where the user adds the photos for a template on makeviral.ai (on any device). Use it when the user cannot attach photos in this chat. Give the user the link, wait until they say they are done, then call run_template with the returned uploadId.
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": {
"template": "<template>"
},
"name": "create_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Version id. Default 'main'. | |
| template | Yes | Template slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| slots | No | ||
| uploadId | Yes |