get_asset
Read one asset of a media project in full. For a generated asset: the whole prompt as sent and, when the provider rewrote it before rendering, the rewritten prompt; the settings that ran (input mode, format, duration, prompt expansion, seed, audio); the frames, source and references it was given, by id; and what it cost — what the app's generation details show. Read it when a result drifts from the prompt, to see what the provider rendered from, or to reuse a seed. Free.
create_project
Create a project. media: generated images and videos, any aspect ratio. motion: a Remotion composition (16:9, 9:16, or 1:1), empty or seeded from a template id from list_templates, in any of those frames: a template seeded into a frame it was not written for arrives with its code as written, and the reply's template.adaptTo says its layout needs re-laying-out for that frame before it is used. studio: an empty timeline (16:9, 9:16, 1:1, 4:5, or 4:3) to assemble media, motion blocks, music, and captions. script: a script document (voiceover lines and screenplay scenes) with prompts attached; no aspect ratio. Returns the id and the link to open it in Tonpit. Free.
read_script
Read a script project: a screenplay of scenes, every line with its id (action, dialogue, voiceover cues, text on screen), the cast, the user's comments and rewrite requests, the prompts attached to sections with the model each is written for, the named versions and the recent history. outline gives the shape with counts; full (default) gives the words. Edit the scenes, lines and comments by id with edit_script, the cast and prompts with edit_prompts. Free.
edit_script
Change a script with a list of verbs applied in order over ids from read_script: scenes (add_section, set_section, move_section, delete_section) and their lines (add_lines, replace_line, move_line, delete_lines), the title, logline, brief and target length (set_meta), and the user's comments (add_comment; resolve_comment for each one your rewrite answers; delete_comment). The script is a screenplay, and every line has a type. heading: a slug inside the scene. action: what the camera sees, in the present tense. dialogue: what a character says aloud, under a character cue, with an optional parenthetical. vo: a voiceover cue said over the action it is written across, character naming the narrator when there is one; never a section of its own. on_screen: text the viewer reads, drawn as an insert. transition: CUT TO:. The cast and the prompts attached to sections are edit_prompts. Every call is one point in the script's history, labeled with summary, so make a draft or a round of rewrites one call, not one call per line. A version is a variant the user keeps: pass saveVersion with a versionName only when the user asks for one. Bumps the revision and holds the editing lease for a minute; the user's open tab follows read-only. Free, up to 600 calls a day shared between edit_script and edit_prompts.
edit_prompts
Change the production side of a script over ids from read_script: the cast and the prompts attached to its sections. set_cast replaces the cast list: names, descriptions, and the Tonpit character from list_characters each maps to, so generations keep one face; keep an existing member's id so a rename reaches their lines. Write a prompt (set_prompt) only when the user asks for one, for the section and the model the user named or you agreed on, after reading that model's skill (get_skill: choose-model, then its create-with entry); a prompt is text the user copies or you pass to generate_media yourself, nothing generates from it here. move_prompt orders the prompts of a section; delete_prompt drops one with its rewrite history. The scenes, lines, title and the user's comments are edit_script. Every call is one point in the script's history, labeled with summary, so make a draft or a round of rewrites one call, not one call per line. A version is a variant the user keeps: pass saveVersion with a versionName only when the user asks for one. Bumps the revision and holds the editing lease for a minute; the user's open tab follows read-only. Free, up to 600 calls a day shared between edit_script and edit_prompts.
list_models
The image and video models this user can run, with what each accepts: start/end frames and keyframes, references per kind and in total, prompt length, durations, the resolutions their country can order, audio, and the source-video length an edit takes; which generate_media operations it supports, and its price in credits per image or its exact rate per second at each resolution it offers, so a run is quoted from the rung it will order (a clip bills rate times seconds, rounded up to a whole credit). Inputs such as a video reference or a source video can change the bill; draft_media quotes an exact set of inputs without spending. These are the facts; get_skill holds the craft of choosing and prompting a model. Free.
import_media
Bring the user's own files into a media project: images, video, or audio. Each becomes an asset with an id you can use as a reference, start frame, or source; video and audio are probed for duration. Two roads, and on both the whole batch registers as one job: a short batch is usually finished and in assets before this call returns, while a long one answers with a jobId, what has landed so far and pending, and one wait_jobs on the jobId reports every file as it lands. Public https URLs: pass urls. Local files, the road for an agent on the user's machine, in three steps: 1) pass files [{name, contentType, sizeBytes}] and get one upload slot per file; 2) PUT each file yourself with the howToUpload command, outside this tool, before the slot's expiresAt (15 minutes); 3) pass every slot's storagePath as uploaded, the whole batch in one call. Free, and bounded: 500 MB per call, 5 GB a day and 2 imports running at a time per account, one minute per URL. Every URL or upload is reported on its own — what landed comes back in assets, what did not comes back in failed with the reason — and each file is recorded on the project before the next one starts, so a job cut short still keeps what it already brought in and leaves nothing behind.
generate_media
Generate an image or a video in a media project with one of the primitive operations, e.g. generate_image_from_text, generate_video_from_start_frame, edit_video. Pass asset ids from get_project, import_media, or earlier jobs as inputs and references. The model is chosen from modelId or the operation's default; list_models tells what each supports. A person in a Seedance generation comes from one of Tonpit's ready-made characters (assets.characterIds, see list_characters) or from a Seedream 5 image used as a reference — a photo of a real face is refused by the provider. Costs credits: the reply carries each job's cost and the remaining balance. To let the user review first, draft_media parks the same inputs in the project without spending. Video jobs run for minutes; follow with wait_jobs. Read get_skill before prompting.
draft_media
Park a generation in a media project without running it: the same inputs as generate_media, validated and priced the same way, written into the project's generation panel. Spends nothing. The user opens the link and sees the prompt, model, settings and attached assets with the price, and presses Generate there — or tells you to run generate_media with the same inputs. estimatedCost is the credits generate_media would charge.
edit_shots
Choose which generated images and videos of a media project a timeline can use. A shot is a named pointer to one generated asset; the project's exposed shots are its block, and a media project reaches a timeline only as a block: one linked source whose clips are its shots, which the user can swap between in the Studio. Names are how the user and you refer to shots, so give each a clear one. expose makes an asset a shot, or shows its hidden shot again; rename renames; hide takes a shot out of the block, and clips already placed keep playing it. Next: edit_timeline place {mediaProjectId}. Imported library files are not shots; place those directly. Free.
list_characters
Tonpit's ready-made characters: fictional people cleared for Seedance generations. With no arguments you get every character with its name, description and thumbnail URL as text — a list of portraits is too much to look at at once. Pass up to 12 characterIds to actually see those portraits. Use one by passing its id to generate_media as assets.characterIds; the character is added to the project's library and attached as an identity reference. Free.
generate_voiceover
Turn a script into spoken audio (ElevenLabs v3) and store it in a media project as an audio asset. Voices: JBFqnCBsd6RMkjVDRZzb = James (male: Balanced, clean default voice.); zr8LjFHkcSkZGf0ty4yF = Ryan (male: Warmer and more natural delivery.); rvOgQY9lHZvloNdOfTSw = Lauren (female: Bright, clear, social-style delivery.); IXQNEztSaMOhDsIfRsaO = Ollie (female: Youthful, friendly, energetic delivery.). Up to 5000 characters per call; costs credits by character count. Write for the ear: short sentences, natural pauses.
read_voiceover
Read a voiceover placed on a studio timeline as the lines it actually speaks: each line's id, wording, position, the take it speaks, and every other take recorded for it. Line ids and take ids are what edit_voiceover takes. A voiceover with no line ids cannot be edited in place — the reply says so. Free.
edit_voiceover
Change ONE line of a voiceover placed on a studio timeline, keeping the rest. Pass takeId to switch the line to a recording it already has (free), or text/speakText/voiceId to record a new take for it — same voice and voice settings as the line has now unless you say otherwise. Costs credits by character count, like generate_voiceover, up to 5000 characters. The new take joins the voiceover block's history, the line is swapped in, the arrangement re-lays keeping the gaps it has, the block's clip re-fits to the new length and an auto-laid music bed follows. Call read_voiceover first: line ids and take ids must be real.
wait_jobs
Wait for generation, export, capture or import jobs. Long-polls on the server and answers as soon as any job changes status or queue position or finishes (listed in `changed`), otherwise at timeoutSec (max 50). Returns each job's status and, when ready, its assets, download URL, or the captured project's id and link; an import job lists each URL or upload as it lands. Finished images come back with the result so you can see them; videos come back as ids and URLs only, because you cannot watch them. Generation jobs carry elapsedSec and lastChangeAt, and while running a typicalSec range: an estimate from past jobs of the same model, resolution and length, not a promise. Jobs still running come back as queued or processing; call again. Failed jobs are refunded automatically. Free. A call whose jobs have all finished answers at once; one account may have 3 waits open at a time, so poll one batch per session rather than one call per job.
search_music
Search Tonpit's licensed music library by words, genre, mood, energy, lyrics, and length. Returns tracks with their tags and a playable url. Words match whole words of a track's name, artist, genre, moods and tags; a search whose words no track carries returns none, and the reply says so. Short sounds (a whoosh, a hit, a sting) are a separate library: search_sfx. You cannot listen; choose by tags and duration, and let the user confirm the feel. Tracks are free to use in exports. Free to search.
search_sfx
Search Tonpit's sound-effects library — short clips such as a whoosh, a riser, a hit, a UI click or a brand sting — by words, category and length. Returns clips with their category, length and a playable url; edit_timeline place {sfxId} lays one on a timeline at a time. Words match whole words of a clip's name, category and description; a search whose words no clip carries returns none, and the reply says so. Music beds are search_music. You cannot listen; choose by name and category, and let the user confirm. Free to use and to search.
list_templates
Motion templates: finished Remotion compositions, and the working standard for motion code in Tonpit. Without arguments: every template with what it is for and the slots it expects, plus the category counts to narrow by. With category and/or query: only the rows that match. A query matches whole words (plurals included) of the name, description, categories, use cases and group, never parts of words; one shared word keeps a row, and a query of three or more words keeps the rows carrying at least half of them. Rows carrying more of the words come first, then rows whose shared words fewer templates carry. With templateId: that template in full, code included, to read as an example before writing your own or to decide whether to start from it with create_project(type: motion, templateId). Free.
read_motion
Read a motion project: its Remotion code, frame settings (size, fps, duration), the stage behind it, the files the user attached, the brand they set, and the history of saves. The stage is part of the code — a top-level `const BACKGROUND` document — so you change it by saving code, not through a separate tool. The attachments are the project's own media: write their URLs into the composition, or pass one to a tool that takes an image. The brand guidelines are the user's colors, fonts, logo and taste note; use them when the request is about the brand, and treat the saved code as settled otherwise. include narrows the read: include: ["history"] answers the revision, what the user changed by hand and the history without transferring the code. Free.
validate_motion
Check Remotion code against Tonpit's rules before saving: syntax, allowed imports, no randomness or wall-clock, the MOTION camera contract, liquid glass, the BACKGROUND stage document, fonts and icons that exist. Returns errors that must be fixed and warnings worth reading. Read the motion-code skill first. Free.
save_motion
Save Remotion code into a motion project, as the whole code or as edits to the code you read. The code is validated first and refused with the errors when invalid. Pass the revision read_motion returned as baseRevision: a save built on an older revision is refused with stale_revision, and the refusal carries the current code, settings and hand edits in `current` so you can carry your change forward and save again. On success the composition is pushed to the render server, so capture_frames and exports see it. edits is a list of { find, replace } applied in order, each find naming exactly one place in the code; it saves a small change without resending the file. Pass durationSeconds when the composition length changes; it is raised to the minimum the code declares in PLAYBACK, and the saved settings come back in the result. aspectRatio re-frames the project, e.g. 16:9 to 9:16 after re-laying the code out. The stage behind the piece is part of the code: declare `const BACKGROUND = { "version": 1, "enabled": true, "family": ..., ... }` once, alongside the `// @background: transparent` header, and the user keeps editing it in the Background rail. The save bumps the project's revision and holds the editing lease for a minute, so the user's open tab shows your code and follows read-only. A UI capture is refused here: its code is generated from the capture, so it is edited with read_capture and edit_capture instead. Free, up to 300 saves per day; past that a rate_limited error says when the day resets.
capture_frames
Look at a motion project, a studio project, or a video asset in a media project (assetId), one of three ways. atSeconds: stills at given seconds. contactSheet: one image tiling evenly spaced frames across the whole piece, so a full pass costs one image — with no count it is 9 frames in a 3×3 grid, the default look at a finished piece. strip: one image tiling consecutive frames across a short span at one moment (default 12 frames over 0.5s, in reading order, each cell's second listed in frames), to see pace and easing that stills cannot show — a camera push, a tunnel, a typing rhythm. A studio project is drawn from its timeline, in its seconds, as the export renders it: the composite of every enabled track, motion layers over the footage, captions, at the timeline's own frame — the only way to see titles and footage together before exporting. The images come back with the result, so you see them yourself. This is how you check your own motion work, a cut, and any generated or imported video; you cannot watch it play. A reply carries about 2 MB of pictures: the stills of one call are scaled down together to fit, never dropped, and a still that cannot fit even at 320 px comes back as its URL, named in the reply. Every frame reports the width and height it was actually drawn at. Frames render on a shared queue, 2 at a time. A sheet or strip that cannot finish in the time this call has left runs as a job instead: the reply is a jobId with the seconds pending, and wait_jobs shows the finished image. rate_limited means the render server was busy and nothing was drawn, so the same call will work shortly; partial means some frames were drawn and some were not (the server stayed busy, or time ran out): the error carries the drawn frames and framesOmitted, so ask again only for those; provider_failed carries the error the composition threw at that frame. Free, up to 300 calls per day; past that a rate_limited error says when the day resets.
capture_ui
Capture a public web page into a motion project as animatable Remotion code: the page is rendered headlessly, its layout becomes layers, and the result is a motion project you can read, edit, and save. Answers at once with a job id; the capture runs on for one to three minutes, so call wait_jobs with the id, which reports the project id and link when it is done. Pages behind a login need the Tonpit browser extension and cannot be captured here. Free, and metered: 5 captures a minute, 50 a day and 2 running at a time per account; a capture that fails is not counted. A refusal says when to come back.
read_capture
Read a UI capture before editing it: the edit document you patch, every named target with its box, the compiled interaction and camera timelines, the uploaded files a media override may use, and the captured screen as an image with a numbered badge on each target. A capture is a frozen replay of a real page — nothing in it responds, so a click is a performance of a click — and its code is generated from the documents, which is why it is edited with edit_capture and never with save_motion. Elements the page never made interactive (a thin rule, a playhead, an idle video surface) carry no id and are addressed by exact coordinates: ask for them with targetId or region, which returns every element inside that window with its bounds and center. Read the ui-capture skill for the craft. Free.
edit_capture
Edit a UI capture by patching its edit document — the one object a capture's animation lives in. JSON-pointer patches, exactly the ones the in-app editor applies: /actions/typing/- to type into a captured input, /actions/cursor/- to move, click or hover, /actions/element/- to glide a captured element, /actions/flow/N/time to retime a recorded step, /overrides/- to hide, restyle, replace text or cover a surface with an uploaded file, /camera to frame and cut, /layout/borderRadius and the other layout fields to place the screen in the frame. Call read_capture first: patch paths point into the document it returns, and an element with no id is named by the coordinates it gives you. The document is patched, the composition is regenerated from it and validated, and only then saved — so a refusal changes nothing and comes back with the checker's own words. Patch only what was asked for; everything else stays as it is. The save bumps the project's revision and holds the editing lease for a minute, so the user's open tab shows your edit and follows read-only. Use dryRun to see what a patch compiles to without saving it. Free.
read_timeline
Read a studio project. level summary (default): format, duration, tracks (top to bottom: a video track draws over those below it), sources, revision, lease. level clips: every clip as a row in seconds, filterable by track and time range. level object: one clip or source in full, with its transform and the units it is in. Clip and track rows carry the sound edit_audio can change — gain, fades, reverb, EQ — and omit each of those when the target does not carry it. A placed voiceover reports how many lines it speaks; read_voiceover opens those lines and their takes. Times are seconds; ids are what edit_timeline (the clips), edit_audio (the sound) and edit_look (the picture and captions) take. Free.
edit_timeline
Arrange the clips of a studio timeline with a list of verbs applied in order, all in seconds over ids from read_timeline. Tracks are layers, listed top to bottom; a video track draws over those below it, so a clip laid over another sits on a track above it, at the same seconds. place puts one source on the timeline, named by its shape: {sourceId} a library source; {mediaProjectId, assetId} an imported file; {mediaProjectId, shotIds?} a media project as a block, one clip per exposed shot; {motionProjectId} a motion block (transparent compositions lay over the tracks below); {musicTrackId} a track from search_music; {sfxId} a sound effect from search_sfx, an audio clip at atSeconds. Generated footage is placed only as a shot of its block (expose it with edit_shots first). place at a time where the tracks are taken opens a new track for it; add_track opens one on its own. The timeline lengthens to hold what is placed. set_shot swaps a block clip to another exposed shot, and its audio follows. move, trim, slip, split, delete, set_disabled, reorder edit one clip; close_gaps, tighten_region, sideline_region, retime_ripple edit a stretch of a track; link/unlink pair clips so they move together; rename_source names a library source. Sound is edit_audio; the picture, captions, format and duration are edit_look. A music bed laid by edit_audio re-fits itself whenever a verb here moves the content's end. mode dry_run reports what would change without saving. apply saves, bumps the revision, and holds the editing lease so the user's open tab follows read-only. Free.
edit_audio
Mix the sound of a studio timeline with a list of verbs applied in order, each on one clip or a whole track, over ids from read_timeline. set_gain in dB; set_fade in and out in seconds; set_reverb (hall/room/plate, a wet mix, and an entry point that lets a clip close on a reverb tail); set_eq (a preset or your own bands); set_music_bed lays one music track under the whole cut with a gentle EQ, a fade and a closing reverb, and that bed re-fits itself whenever the content's end moves. Clips, order and timing are edit_timeline; captions and gain keyframes are edit_look. read_timeline reports the gain, fades, reverb and EQ each clip and track carries. mode dry_run reports what would change without saving. apply saves, bumps the revision, and holds the editing lease so the user's open tab follows read-only. Free.
edit_look
Shape what the viewer sees on a studio timeline with a list of verbs applied in order over ids from read_timeline. Every clip starts covering the frame (cropped to cover, never letterboxed): set_transform scales it in percent of that fit, offsets it in pixels of the frame and fades it in percent; set_keyframe and clear_keyframes animate its scale, x, y, opacity or gainDb over time; add_captions cuts caption clips from the speech on one clip, one audio track, or several — reusing each audio asset's stored transcription, so only audio never transcribed before costs credits; set_caption_style swaps a captions track to one of the built-in caption styles, which read_timeline reports per track; set_format sets the aspect ratio and set_duration the length of the whole video. Clips, order and timing are edit_timeline; sound is edit_audio. mode dry_run reports what would change without saving. apply saves, bumps the revision, and holds the editing lease so the user's open tab follows read-only. Free apart from a first transcription in add_captions.
export_video
Render a studio timeline to an MP4. Compiles the timeline, checks it against the export limits, and queues the render; follow with wait_jobs on the returned job id, which reports a download URL when done. Export only when the user asked for it. Every export counts against one monthly allowance — three a month without a plan, unlimited with one. Credits never pay for an export.
get_balance
Read the user's credit balance, export allowance, and plan. 1 credit = $0.01 and pays for AI media only — images, video, voiceover, captions. Exports are counted separately and are never paid with credits: three a month without a plan, unlimited with one. Free of charge. Call before a large generation batch, and hand the user topupLink when credits are short or plansLink when exports are; the agent never pays.