Character Swap: get upload URL
swap_uploadGet a presigned PUT URL for a Character Swap input. kind='character-image' (JPEG/PNG/WebP, ≤20MB) or 'driving-video' (MP4/MOV/WebM/MKV, ≤2GB). PUT the bytes, then pass the r2Keys to create_character_swap. For a character image that already exists on VidGuy (saved actor, preset, influencer look) or lives at a URL, use swap_import_character instead — no byte upload needed.
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>",
"fileName": "<fileName>",
"fileType": "<fileType>",
"fileSize": "<fileSize>"
},
"name": "swap_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| fileName | Yes | ||
| fileSize | Yes | ||
| fileType | Yes |