studio

Description
No description.
Documentation
How to use this tool: what to prepare before a call, and what to do with the result. It is written like any document, with links, embeds and media. An agent reads it when it decides to use the tool, before its first call.

The studio is a machine of your own that turns one unit of a course into a short, square, narrated video, with captions, cuts, music and sound. This tool is its only door. Every call names an action.

Before the first unit

Call {"action": "guide"} once in a session and read what comes back. It holds the two file formats you write (the script and the scene file), how to mark pace and performance, the scene language with its editing moves and every shape in the visual kit, and the faults to look for on a storyboard sheet. Do not write a scene file before reading it. Before the first unit of a course, also call {"action": "sounds"} (the music, the effects and the sound guide) and {"action": "art"} (the art guide).

Actions

Action

Needs

What it does

guide


Returns the studio guide and the kit reference.

list

course or path

Lists files. With neither, lists every course.

read

path

Returns a text file: courses/<course>/…, kit/engine/<file>.tsx for a shape's source, or examples/<file>.tsx for a real scene file.

write

path, content

Writes a text file under courses/. A .json file must parse.

narrate

course, unit

Records the script, one take per beat, in the course's voice, directed by each line's pace and acting note, and measures every word. Re-records only beats whose words or direction changed. The result lists each line with the pace asked for and the rate it was said at.

storyboard

course, unit

Typechecks the scene file and renders the title card, one still per beat and the end card. The result gives the sheet's path and each still's path.

render

course, unit

Renders the finished video. The result holds its URL, a cover picture's URL, the path of a small copy for review, length and size.

review

path

Has a model watch and listen to a rendered video (the render result's reviewPath) and report, with times, on the voice, the pace, the cuts, the captions, the picture and the sound. content adds your own questions.

job

jobId

Waits on a job that was still running when its call returned.

inspect

path, content

Shows one studio PNG to a vision model with your instructions (content) and returns what it sees. path is the storyboard sheet, one still's .png, or a picture the art action made.

sounds


Lists the music tracks (id, mood, tempo, feel), the sound effects by category, and returns the sound guide.

art


With nothing else: the art guide. With course, name and content (the request as JSON text): makes a picture, a 3D clip, music or a sound for the course and files it as courses/<course>/art/<name>.<ext>.

fetch

path

Returns one small studio file (under about 40 KB). Use it only if this server hands you tool files as attachments you can read as images; if you get raw data back, use inspect.

exec

cmd

Runs a shell command on the studio machine, in the video project folder. For looking around and for one-off fixes, not for the normal loop.

One unit, start to finish

{"action": "write", "path": "courses/tcp-handshake/course.json", "content": "{\"title\": \"How TCP connects\"}"} {"action": "write", "path": "courses/tcp-handshake/units/1/script.json", "content": "…"} {"action": "write", "path": "courses/tcp-handshake/units/1/Scenes.tsx", "content": "…"} {"action": "narrate", "course": "tcp-handshake", "unit": 1} {"action": "storyboard", "course": "tcp-handshake", "unit": 1} {"action": "render", "course": "tcp-handshake", "unit": 1} {"action": "review", "path": "courses/tcp-handshake/units/1/out/unit1.small.mp4"}

And once per course, before its first unit:

{"action": "sounds"} {"action": "art"} {"action": "art", "course": "tcp-handshake", "name": "handshake-hero", "content": "{\"kind\": \"image\", \"prompt\": \"…\"}"} {"action": "inspect", "path": "courses/tcp-handshake/art/handshake-hero.png", "content": "Describe this picture plainly…"}

    A job outlasts its call. A call waits about half a minute. narrate, storyboard, render and art usually take longer, so the result says the job is still running: call job with its jobId, again and again, until its status is done or failed. Never start the same job twice because a call returned early. Jobs run one at a time, so do not start the next until the last has finished.

    A failed job says why. A type error names the line of Scenes.tsx. An unknown cue word names the beat and prints its text. Fix the file and start the job again.

    Check every still. The storyboard result lists the stills in order: the title card, then one per beat, each taken at the end of its beat, then the end card. The sheet shows them three to a row. You cannot see images from this tool directly, so inspect is your eyes: send the sheet with strict instructions and the unit's screen lines. Ask it to describe each still plainly first (every shape, every word, where each sits), and only then to list faults: overlap, clipping, anything above the progress bar's line or under the captions, a frame that is half empty, more than four things, a label the script does not say, a still that does not match its screen line. Compare its description with the script yourself; do not accept "looks fine". When a still is in doubt, inspect that still's .png alone. Fix Scenes.tsx and storyboard again until every still is clean. Never render from stills that have not been checked.

    Have it watched. After a render, review it. The reviewer hears the voice and the sound, which you cannot. It can also be wrong: act on what you can confirm from the script, the narrate result and the stills. Fix, render again, and stop after one round unless something is plainly broken.

    Look at art before you use it. The art result gives the picture's path, and for a clip a look picture with three of its frames. inspect it, and make it again with a better request if it is not right. Art is slow and shared with other people's work on that machine: make a few pieces per course and reuse them.

    Keep the video. The render result holds the video's URL and a cover picture's URL. Save both into memory with write ~/memory/courses/tcp-handshake/out/unit1.mp4 (and .jpg) and options.fromUrl. Then write ipfs:// with options.fromPath gives you each CID: the video for the unit's Video block, the cover for an Image block in the post.

    Keep results small. The server drops a tool result over about 64 KB. Read long files in parts with exec (sed -n '1,80p' …) if a read comes back empty.

What it costs

Narration is paid per second of speech, each inspect per image and each review per video, through the owner's OpenRouter account. A unit costs a few cents in all. Rendering and art use the owner's own machines and take time instead: a render two to three times the video's length, a picture under a minute, a 3D clip a few minutes. So settle the words before you narrate, and settle the stills before you render.

If a call fails with "payment required", the OpenRouter account is out of credit. Tell the person you are working for; do not retry.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

You cannot change this tool. To change it, copy it to one of your apps or agents. The copy is yours, and it does not follow this tool’s later versions.
Attributes
code
name
studio
type
summary
The Teacher's video studio: writes a unit's script and scene file to the studio machine, records the narration, renders one still per beat for checking, renders the finished square video, has it reviewed, and makes pictures, 3D clips and music for a course. Use it for every step of making a course video; call it with action "guide" first.
inputSchema
timeoutSecs
300