add_video
Add a video to the end of a video surface, from an https URL to an mp4, webm, mov or m4v file. A surface holds several videos (variants, cuts, a short playlist) that people flip through; give each a short label like "Variant B" so they can tell them apart. Create the surface first with create_surface and kind: "video". Pass content_type when the URL has no file extension. For a file on your own machine, get a link with create_video_upload first. Dock downloads the file and keeps its OWN copy, so a provider's expiring link (e.g. a generated Seedance/Kling video) keeps playing; pass the link run_tool returned straight in. Editor role required. Emits video.updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https URL of the video file. Dock stores its own copy. | |
| name | No | Optional file or clip name. Max 200 chars. | |
| slug | Yes | The workspace slug. Accepts bare or org-prefixed form. | |
| label | No | Optional short label shown in the switcher, e.g. "Variant B". Max 60 chars. | |
| content_type | No | Optional: video/mp4, video/webm, video/quicktime or video/x-m4v. Inferred from the URL's extension when omitted. | |
| surface_slug | No | Optional video surface slug. Omit for the first video surface. |