Uploads, imports & analysis
Create upload URLs, import external media, and analyze video scenes.
media_imports_create
Alpha
Import a public TikTok or Instagram video into the connected workspace when its Creative flag is enabled.
Operation Write, approval required, requires the creative flag
Sample prompt: Import this public Instagram Reel into my workspace and wait until it is ready to use as a video reference.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Media import input. |
body.url | string | Yes | — | Public TikTok or Instagram video or Reel URL. |
body.get_transcript | boolean | No | — | Retrieve a transcript when TikTok provides one. Instagram ignores this field. |
body.source_media_url | string | No | — | Direct video URL on the source platform CDN. The service can fall back to the post. |
body.mode | string | No | — | async (default), sync, subscribe, or webhook. |
body.webhook_url | string | No | — | Public HTTPS endpoint for terminal notifications. Required in webhook mode. |
body.wait_timeout_seconds | integer | No | — | HTTP wait for sync or subscribe, from 0 to 30 seconds. Defaults to 30. |
body.project_id | string | No | — | Destination project ID in the connected workspace. |
idempotency_key | string | Yes | — | Reuse this key to retry the same input. |
approval_receipt | string | No | — | Receipt from the plan. Supply it after confirmation. |
media_imports_get
Alpha
Retrieve a media import by ID in the connected workspace when its Creative flag is enabled.
Operation Read only, requires the creative flag
Sample prompt: Get the imported video URL so I can use it as a reference in a Creative video job.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path | object | Yes | — | Media import identifier. |
path.id | string | Yes | — | The data.media_import_id returned when creating the import. |
idempotency_key | string | No | — | Use a unique key per action and reuse it when retrying the same input. |
upload_url_create
Create a signed file upload URL for the connected workspace.
Operation Write, approval required
Sample prompt: Upload my local product.png and use it as a reference for a new product photo.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | File metadata. |
body.content_type | string | No | — | File MIME type, for example image/png. |
body.size_bytes | integer | Yes | — | Exact size in bytes, from 1 to 2,147,483,648. |
body.filename | string | No | — | Original filename, up to 255 characters. |
idempotency_key | string | Yes | — | Key for this upload request. |
approval_receipt | string | No | — | Receipt from the plan. Supply it after confirmation. |
video_analysis_create
Alpha
Analyze a video scene by scene, or ask a specific question about it. Provide exactly one of an uploaded video ID or a public YouTube URL. Longer videos may reduce accuracy. Use glance for a faster pass with fewer sampled frames.
Operation Write, approval required, requires the creative flag
Sample prompt: Quote a quick analysis of this uploaded video to find when the product first appears.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mode | string | No | "deep" | Use deep for detailed analysis or glance to sample fewer frames. |
prompt | string | No | — | A question of up to 4,000 characters. Omit it for a scene breakdown. |
video_input_id | string | No | — | UUID of an uploaded video. Provide either this or youtube_url. |
youtube_url | string | No | — | Public YouTube HTTPS URL. Provide either this or video_input_id. |
Send these values in tools/call request metadata under params._meta.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | The plan’s request.idempotencyKey. Reuse it after approval or when retrying the same action. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
video_analysis_jobs
Alpha
List video analysis jobs in the connected workspace, newest first. Pass next_cursor from the last response as cursor to fetch the next page. The cursor is a Unix timestamp in seconds.
Operation Read only, requires the creative flag
Sample prompt: Show me the 10 most recent video analysis jobs and their statuses.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | number / null | No | — | The last response’s next_cursor. Omit it or send null for the first page. |
size | integer | No | — | Number of results per page, from 1 to 100. |
video_analysis_status
Alpha
Get the status and result of a video analysis job by its video_analyze_id. When the job completes, answers appear in result.analysis and scene breakdowns in result.scenes. Check fail_reason if the job fails.
Operation Read only, requires the creative flag
Sample prompt: Check whether my last video analysis finished and show me its scene breakdown.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
video_analyze_id | string | Yes | — | UUID returned when the analysis was submitted. |