suggest_clips
Suggest better B-roll for video cutaways. For a local cut, get ranked alternatives with thumbnails; for hosted projects, list cutaways or search the B-roll library by theme to see matching clips.
Instructions
See a project's cutaways and find better B-roll for one of them. LOCAL project (default): pass cut (0-based) to get ranked alternatives for that cutaway, each with a thumbnail. HOSTED Swap & Refine project (pass job_id, or set VIRALSPIN_HOSTED_JOB_ID): call with no query to list the timeline's cutaways (segment id + the beat each covers + current clip); call with query (e.g. "newborn in hospital") to search the user's B-roll library — each result includes the library tags it matched on, which is the 'why this clip fits' to show the user. Then call swap_clip to apply a choice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cut | No | LOCAL only: index of the cutaway to replace (0-based; from the cut list create_video_assembly returns). | |
| query | No | HOSTED: theme to search the B-roll library for (the moment's subject). Omit to list the timeline's cutaways instead. | |
| job_id | No | HOSTED: the Swap & Refine project (narrative job) to inspect. Omit to use VIRALSPIN_HOSTED_JOB_ID, or the local project. |