AGENT SKILL

api-scripts

Call nodetool.scripts from a code action: create a voice script (spoken lines, not JavaScript), add speakers with voices and spoken lines, voice the lines as audio takes, and assemble the takes into a voiceover timeline with word timings. Load before the first call into nodetool.scripts.

License 许可
AGPL-3.0
最近更新
2026-11-14
Stars
★ 633
Forks
90

01 前言 Front Matter

name
api-scripts
description
Call nodetool.scripts from a code action: create a voice script (spoken lines, not JavaScript), add speakers with voices and spoken lines, voice the lines as audio takes, and assemble the takes into a voiceover timeline with word timings. Load before the first call into nodetool.scripts.

02 资源文件 1

03 SKILL.md 正文

nodetool.scripts

A script (a voice script) is a cast of speakers, each with a voice, and the lines they speak in reading order. Voicing a line makes an audio take. Assembling lays the takes into a timeline. A JavaScript script is a different document (nodetool-js-scripting). A video timed to a written voiceover is script-video.

Call Does Answers
list({limit}) Lists scripts, newest first, with cast size, line count, voiced count and the timeline it was assembled into. Script rows
create(name, {project_id, id}) Creates an empty script. An existing id is returned as it is, so a retry makes no copy. {script_id, …}
get(id) Reads the cast and every line with its id, index, speaker, text, direction, pause, effective voice and voicing status. The script
edit(id, ops) Applies ops in order and saves. An open editor picks the change up live. The result of each op
voice(id, opts) Calls the TTS provider for the lines. The takes it made
assembleTimeline(id, {name, fps}) Lays the voiced takes end to end into a timeline. The timeline id, and the lines it skipped

Line status is draft (never voiced), stale (the text or voice changed since the take), voiced or no_voice (the speaker has no voice).

Ops

A line target is its id, its 0-based index in the whole script, or its exact text. A speaker target is its id or name. An argument an op does not take is refused.

Op Arguments
set_setup stage?, brief?, format?, length_seconds?, pace?, language?
add_speaker name, color?, provider?, model?, voice?, entityId?
set_speaker target, name?, color?, entityId? — renames or recolours a speaker
set_speaker_voice target, provider, model, voice, settings?
remove_speaker target
add_section title?
add_line text, speaker?, section?, direction?, pause_after_ms?, index?
set_line_text target, text
set_line_speaker target, speaker — the op that gives a line its speaker
remove_line target
  • format is voiceover, dialogue, interview, ad-read or tutorial.
  • entityId makes the speaker a cast character from the entity library, so storyboard renders can use it.
  • A rewritten line keeps its takes as stale, so the next voice() records exactly those again.

voice

  • Omit targets to voice every line that is unvoiced or stale. A whole script is one call. Each line is a paid TTS call plus a transcription call, so confirm the scope with the user before you voice a long script.
  • targets takes line ids, indexes or exact texts.
  • Each line uses its own voice, else its speaker's. provider, model and voice together override every line. Pick the model with nodetool.models.pick("text_to_speech").
  • speed, concurrency (default 3, max 8).
  • Word timings are transcribed for captions (transcribe, default true; asr_provider and asr_model default to openai and whisper-1).
  • Earlier takes are kept, and the new take becomes current.
const { script_id: id } = await nodetool.scripts.create("Launch VO");
await nodetool.scripts.edit(id, [
  { op: "add_speaker", name: "Narrator" },
  { op: "set_speaker_voice", target: "Narrator", provider, model, voice },
  { op: "add_line", text: "Meet the lamp that listens.", speaker: "Narrator" }
]);
await nodetool.scripts.voice(id);
const cut = await nodetool.scripts.assembleTimeline(id);

Each assembled clip carries its word timings, the speaker label and a link to its line, so a re-voiced line can round-trip into the cut. Running the assembly again rebuilds the same timeline in place. Validate it with nodetool.timelines.validate before a render.

04 同仓库更多 Skills

nodetool-ai
nodetool-ai/nodetool

nodetool

Use the NodeTool MCP server to build, validate, run, and debug visual AI workflows, and to work with assets, collections, and jobs. Use when the user mentions NodeTool or asks for a workflow graph, a node, or a media generation run on their NodeTool server.

开发工程师Skill与智能体开发
★ 633
nodetool-ai
nodetool-ai/nodetool

wan-2-6-prompting

Prompt Alibaba's Wan 2.6 video — text-to-video with a global style line plus timing-bracketed shots, and image-to-video that describes only what changes over time. Covers the shot-mode switch per provider, the prompt budget, negative prompts, motion intensity wording, audio input and prompt expansion. Use whenever the model id names a Wan 2.6 video route (alibaba/wan-2.6/text-to-video, alibaba/wan-2.6/image-to-video, wan-video/wan-2.6-t2v, wan-video/wan-2.6-i2v, wan-video/wan2.6-i2v-flash) on generate_video, animate_image or a TextToVideo node. Not for Wan 2.5 or 2.7, or the Wan 2.6 image routes.

图像与多媒体
★ 633
nodetool-ai
nodetool-ai/nodetool

video-workflow

Build a reusable NodeTool video workflow for batches or repeated inputs. For a single finished piece, use a storyboard skill.

图像与多媒体Skill与智能体开发
★ 633
nodetool-ai
nodetool-ai/nodetool

video-clone

Analyze a reference video and recreate its shot structure with a new product or cast in NodeTool.

图像与多媒体
★ 633
nodetool-ai
nodetool-ai/nodetool

video-audio-continuity

Keep sound continuous across a multi-scene piece cut from generated video — why one clip per scene hard-cuts the audio at every boundary, when to write all the scenes into a single generation instead, the sound-design vocabulary that survives a provider's copyright filter, and how to check the length, the aspect ratio and the mix of what came back. Use when a piece has more than one scene and the video model writes its own audio (Seedance 2, Veo 3, MiniMax H3, Kling 2.6 and later), or when a cut's sound drops out at the shot changes.

图像与多媒体
★ 633
nodetool-ai
nodetool-ai/nodetool

veo-3-prompting

Prompt Google's Veo 3 video line — the five-element shot/setting/subject/action/dialogue structure, the cinematography vocabulary it reads directly, duration and aspect-ratio tradeoffs, the audio and auto-fix switches per provider, and the fixes for visual drift, temporal inconsistency and audio mismatch. Use whenever the model id contains veo3 or veo-3 (fal-ai/veo3.1 and its fast, lite, image-to-video, first-last-frame and reference-to-video routes, fal-ai/veo3/image-to-video, google/veo3.1 on atlascloud, google/veo-3 and google/veo-3.1 on replicate, kie's veo-3-1, and Gemini's own veo-3.1-generate-preview) on generate_video, animate_image, generate_video_from_references or a TextToVideo node.

图像与多媒体
★ 633