Create an upload link
create_uploadReturns a one-time HTTPS link to upload a video or photo to Aisma, plus its asset id. Upload the file yourself with an HTTP PUT to uploadUrl (for example: curl -X PUT -H "Content-Type: " --data-binary @file ""), then poll get_asset until it is ready. Videos are 2–60 seconds long and up to 500 MB (MP4 or MOV); up to 10 photos (JPEG, PNG or WebP).
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>",
"contentType": "<contentType>",
"bytes": "<bytes>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| bytes | Yes | ||
| contentType | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| assetId | Yes | ||
| headers | Yes | ||
| expiresAt | Yes | ||
| uploadUrl | Yes |