clipswarm
v0.1.0Clip YouTube videos and livestreams into viral 9:16 shorts, in parallel, for AI agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_video_info
Get a YouTube video's title, channel, duration, chapters and liveStatus ("is_live" means it's streaming now: clip it with times relative to "now"). Use chapters to find natural clip boundaries.
| Parameter | Type | Description |
|---|---|---|
url * | string | YouTube URL |
get_transcript
Get the timestamped transcript of a YouTube video. Optionally limit to a time window to keep output small. Read it to decide which moments to clip.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
from | string | number | Seconds (83) or "1:23" / "1:02:03.5". Negative = from the end ("-0:30"). For LIVE streams: "now", negative offsets from the live edge (-90), or ISO time ("2026-10-08T00:40:00Z"); roughly the last hour… |
lang | string | Caption language code, default "en" |
to | string | number | Seconds (83) or "1:23" / "1:02:03.5". Negative = from the end ("-0:30"). For LIVE streams: "now", negative offsets from the live edge (-90), or ISO time ("2026-10-08T00:40:00Z"); roughly the last hour… |
search_transcript
Find where a phrase is said in a YouTube video. Returns time windows with surrounding text, ready to pass to create_clips.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to find (all must appear in the caption line) |
url * | string | |
contextSec | number | Seconds of padding around each hit, default 15 |
lang | string | |
limit | number |
create_clips
Cut one or more clips from YouTube videos (including streams that are live right now) in parallel. Only the requested sections are downloaded. Jobs can span different videos. Returns a result per job; failures don't abort the batch. Live results include the wall-clock range covered. Viral clips take ~15-60s each; if the batch isn't done within waitSec, you get finished results plus a jobId: call get_clips with it until pending is 0.
| Parameter | Type | Description |
|---|---|---|
clips * | array | |
outDir | string | Output directory, default /tmp/clips |
waitSec | number | Seconds to wait before returning, default 40. If clips are still rendering, the response includes a jobId; collect the rest with get_clips. |
get_clips
Get results of a create_clips batch that was still running (create_clips returns a jobId when it doesn't finish within waitSec). Waits up to waitSec for more clips to finish. Call repeatedly until pending is 0.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
waitSec | number | Seconds to wait for completion before returning, default 40 |
create_watch
Watch a category: on a schedule, search YouTube for new videos about it and auto-clip the best moments into viral shorts (moments and hooks picked by the local Claude Code CLI if installed, else YouTube's most-replayed peaks, else a transcript heuristic). Anything it can't clip (and live streams, if enabled) goes to the inbox for you. Replaces a watch with the same id. Runs via the background scheduler (see watch_scheduler).
| Parameter | Type | Description |
|---|---|---|
every * | string | How often to check: "30m", "6h", "1d" (min 5m) |
query * | string | The category, phrased like a YouTube search, e.g. "netflix stock analysis" |
autoClip | boolean | Default true. false = only collect videos into the inbox |
clipSeconds | number | Target clip length, default 45 |
clipsPerVideo | number | Default 2 |
id | string | Short name; defaults to a slug of the query |
includeLive | boolean | Also surface streams that are live right now |
maxAgeHours | number | Only videos uploaded within this many hours (default 72) |
maxDurationSec | number | Default 14400 |
maxVideosPerRun | number | Default 3 |
minDurationSec | number | Default 120 (skips Shorts) |
minViews | number | |
outDir | string | Default ~/clipswarm/<id> |
picker | string | How moments are chosen. Default "auto" |
style | string |
list_watches
List watches with their schedule, last and next run, plus scheduler status.
delete_watch
Stop and remove a watch.
| Parameter | Type | Description |
|---|---|---|
id * | string |
run_watch
Run a watch right now instead of waiting for its schedule. Runs in the background (searching and rendering takes minutes); check get_inbox afterwards.
| Parameter | Type | Description |
|---|---|---|
id * | string |
get_inbox
Videos found by watches. "clipped" = auto-clipped (paths in clips; note says how moments were picked). "needs_agent" = couldn't be clipped automatically: read the transcript, pick moments, call create_clips, then mark it "done". "live" = streaming now. "failed" = see note.
| Parameter | Type | Description |
|---|---|---|
limit | number | Most recent N, default 30 |
status | string | |
watchId | string |
update_inbox_item
Mark an inbox video as handled ("done") or not worth clipping ("dismissed").
| Parameter | Type | Description |
|---|---|---|
status * | string | |
videoId * | string | |
note | string |
watch_scheduler
Status, install or uninstall the background job that runs due watches every 5 minutes (launchd on macOS; returns a crontab line elsewhere). Install only when the user wants watches to run automatically.
| Parameter | Type | Description |
|---|---|---|
action * | string |