PPC: Media upload slot
ppc_media_upload_slotMint a 1-hour signed PUT slot so the ASSISTANT can upload a file it holds in its own sandbox (no browser round trip): file_name with its extension (image jpg/jpeg/png/tif/tiff up to 25MB, video mp4/mov/wmv/avi up to 100MB), optional content_type and size_bytes checked up front. PUT the raw bytes to put_url, then pass the returned staged_file_id to stage_listing_update (main_image, other_images), stage_asset_upload or stage_aplus_update. The response lists accepted_by. Videos over 100MB go through stage_asset_upload source_url instead.
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": {
"file_name": "<file_name>"
},
"name": "ppc_media_upload_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | ||
| profile_id | No | Which advertising profile (see account_profiles). Optional when the token has exactly one. | |
| size_bytes | No | ||
| content_type | No |