VidNavigator Video Dataset
Latest: v1.4.2
Version 1.4.2 from github.com/vidnavigator/skills
Build a dataset from videos
Find the videos, extract the same fields from each one, write one row per video. The fields come from what is said in each video and, with include_scenes, from what it shows, read by extract_video_data: a search result's caption is not a source for them.
Calling VidNavigator
Each step names a VidNavigator tool and its arguments. Call it in whichever way this session offers:
-
MCP tools. If tools such as
extract_video_dataare in your tool list (their names may carry a prefix, for examplemcp__vidnavigator__extract_video_data), call them directly. A tool that starts a background task returns atask_idand atask_type: callget_task_statuswith both untiltask_statusiscompletedorfailed. That call waits for the task, so make it again whenever it still answersprocessing. TikTok results come 50 per page: passpagination.next_cursorascursorfor the next page. -
The bundled CLI. Otherwise run the script that sits beside this file, where
SKILL_DIRis the directory containing this SKILL.md:bash node "$SKILL_DIR/scripts/vn.mjs" extract_video_data video_url="https://www.tiktok.com/@user/video/123" schema=@schema.json --out rows/123.jsonSame tools, same arguments, written
key=value. Quote a value that holds spaces,&or?. An object such asschemais read from a file:schema=@schema.json. The CLI waits for background tasks and gathers every page of a search.--out FILEwrites the full result to a file and prints what it holds. It needs Node.js 18+ and the user's API key. When it reports that no key was found, give the user its instructions and stop.node "$SKILL_DIR/scripts/vn.mjs" help <tool>lists a tool's arguments.
1. Settle the scope
You need three things. Ask only for what the request leaves open, and propose the columns yourself from the user's goal.
- Source: a TikTok keyword search, a TikTok profile, a YouTube search, or links the user already has.
- Size: how many videos. Above 50 videos, state the size of the run and wait for a go-ahead: every video uses credits.
- Columns: the fields to extract, and the file format (CSV by default).
2. Find the videos
- TikTok, by keyword:
search_tiktok. Write the query as a TikTok user would (1 to 4 keywords). Always setmax_results. Popular videos:sort_by=most_liked, withpublished_withinfor a period. Recent videos:after_datetimealone. Setcountry(two letters;usis not available) when the user names a market. - TikTok, one creator:
scrape_tiktok_profilewithprofile_urlandmax_posts. - YouTube:
search_videoswithqueryandmax_results. Each result already carries a summary and its best moment. - Links from the user: nothing to search.
Search results already hold facts to keep as columns: the link, the creator, the publication date, views and likes.
3. Write the schema once
extract_video_data takes a schema: a standard JSON Schema whose root is an object, {"type": "object", "properties": {...}}. Each property has a lowercase type (string, number, integer, boolean, array with items, object with properties) and a description; enum lists the allowed values. At most 10 fields per level and 3 levels. The description is what the extraction follows, so make it precise, and say what to return when the video does not give the information.
{
"type": "object",
"properties": {
"product": { "type": "string", "description": "Product the video is about. Empty if none." },
"price_usd": { "type": "number", "description": "Price stated in the video, in US dollars. Null if no price is said." },
"verdict": { "type": "string", "enum": ["positive", "mixed", "negative"], "description": "The creator's overall opinion of the product." },
"claims": { "type": "array", "description": "Each factual claim made about the product.", "items": { "type": "string", "description": "One claim, as one short sentence" } }
}
}
When the user describes the columns in words rather than fields, what_to_extract alone (for example "the product, its price in US dollars and the creator's verdict") writes the schema: it comes back as schema beside the result, to pass as schema for the other videos.
Use the same schema for every video of the run.
4. Extract
- Run one video first:
extract_video_datawithvideo_url,schemaand, when useful,what_to_extract(one sentence of guidance). It runs as a background task (task_typeextract_video) and returns the fields underresult, with the video's details undervideo_info. Check that the fields come back as intended, and adjust the schema now if they do not. - Then run the rest, at most 10 at a time. The first call with a new schema prepares it for the following ones, so do not start the batch before the first video has finished.
Videos without captions are transcribed automatically, YouTube included. A video that still fails (private, removed, no speech): record the failure and move on.
When a field is on screen, not said
Add include_scenes=true when a column can only be read from the picture: a price or a product name shown but never spoken, a text overlay, a recipe's quantities, or videos with music and no speech (frequent on TikTok). The extraction then also reads what each video shows, scene by scene, with the text on screen, and the task's result carries frames_analyzed.
It costs more per video (see Credits), so decide it on the first video: run it once without and once with include_scenes, compare the fields, and keep it only if it fills columns that stay empty otherwise. Tell the user which you chose and why.
5. Write the file
- One row per video: the facts from the search (link, creator, date, views, likes), then the extracted fields.
- An
errorcolumn for the videos that failed, with the message. Never fill a missing value with a guess: leave it empty. - CSV: quote fields that contain commas, quotes or line breaks; join array values with
|. - Save it in the working directory under a name that says what it is (
creatine-gummies-tiktok.csv), and tell the user where it is, how many videos succeeded and how many failed.
For more than a few dozen videos, write a short script that loops over the links and appends each row as it arrives, rather than holding every result in the conversation.
What the fields come from
By default extraction reads what is said in a video (captions, or speech-to-text) and its details. It does not see the picture: a price shown on screen but never spoken is not found.
With include_scenes=true it also reads what is shown: the scenes of the video, each with a description of the picture and the text on screen. Something visible for an instant between two scenes can still be missed.
Credits
A TikTok search is billed per 30 videos returned (at least 1 per search and 1 per 5 TikTok pages read), a YouTube search per candidate video it reads, extraction by the length of the text read. include_scenes adds a charge by the length of the video watched, per started minute. Checking a task is free. get_usage gives the balance: call it when the user asks, or before a run of several hundred videos.
