doc2video

v0.2.3
io.github.doc2video/d2v Checked 4 days ago Published 1 month ago

Turn documents and photos into narrated AI videos from Claude, ChatGPT, Codex or any MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

d2v_connect_account Connect doc2video account

Connect this server to the user's doc2video account. Call it first when other tools say the user is not logged in. It returns a link: ask the user to open it, sign in or sign up, and click Approve, then call this tool again to finish.

ParameterTypeDescription
wait_secondsintegerHow long to wait for approval on this call (default 30)

d2v_list_projects List projects

List the user's doc2video projects (id, name, status, format).

d2v_get_project Get project

Full project detail: settings, sources, every scene (narration, visual mode, photo, keyframe URL), jobs, preview/final video, cost estimate and suggested next steps.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name

d2v_list_voices List narrator voices

Narrator voices available for projects.

d2v_create_project Create project

Create a video project from local files and folders (uploaded from this machine), public links, written text, or an AI draft prompt. Photos (jpg/png/webp/heic) are featured in scenes; documents (pdf/docx/pptx/md/txt/csv/json) supply the story. Set build: true to start generating the storyboard right away (then poll d2v_wait).

ParameterTypeDescription
name *stringProject name
aspect_ratiostring9:16 portrait (Reels/TikTok/Shorts) or 16:9 landscape (YouTube/presentations)
buildbooleanStart the storyboard pipeline immediately (default false)
client_namestringClient or brand name
consistencybooleanKeep characters/style consistent by referencing earlier keyframes (default on)
contact_emailstringShown in the closing call to action
contact_phonestring
contact_websitestring
creative_directionstringTone, visual style, focus, audience, things to avoid
draft_promptstringHave AI write the source content from this description
duration_secondsintegerTarget length in seconds; 0 = AI picks from the content
photo_treatmentstringHow user photos become visuals: original = the photo itself, restyle = AI-enhanced from the photo
sourcesarrayAbsolute paths of local files or folders to upload, or public http(s) links to documents, photos or web pages
textstringWritten content to use as a source
use_creditsbooleanPay from the user's credits when the call needs it: $0.50 for a storyboard beyond today's free ones, or AI clips beyond what the purchase covers (the credits_confirm_required error says how much). Onl…
voicestringNarrator voice name or id (see d2v_list_voices)
voice_stabilitynumber

d2v_add_sources Add sources

Upload more local files/folders, add public links, or add written content to a project. Rebuild the storyboard afterwards for them to take effect.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
sourcesarrayAbsolute paths of local files or folders, or public http(s) links
textstringWritten content to add

d2v_remove_source Remove source

Delete a source document or photo from a project, by document id or filename.

ParameterTypeDescription
document *stringDocument id or filename
project *stringProject id, 8-character id prefix, or exact project name

d2v_update_project Update project settings

Change project settings. They apply to steps run afterwards (e.g. run narration again after a voice change).

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
aspect_ratiostring9:16 portrait (Reels/TikTok/Shorts) or 16:9 landscape (YouTube/presentations)
client_namestringClient or brand name
consistencybooleanKeep characters/style consistent by referencing earlier keyframes (default on)
contact_emailstringShown in the closing call to action
contact_phonestring
contact_websitestring
creative_directionstringTone, visual style, focus, audience, things to avoid
duration_secondsintegerTarget length in seconds; 0 = AI picks from the content
namestring
photo_treatmentstringHow user photos become visuals: original = the photo itself, restyle = AI-enhanced from the photo
voicestringNarrator voice name or id (see d2v_list_voices)
voice_stabilitynumber

d2v_draft_content AI-draft source content

Have AI write the video's source content from a short description (saved as the project's AI content brief by default).

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
prompt *string
savebooleanDefault true

d2v_suggest_creative_direction Suggest creative direction

Suggest a creative direction from the project's sources and optional preferences; save: true stores it on the project.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
preferencesstring
saveboolean

d2v_build_storyboard Build storyboard

Queue the storyboard chain on the server: script → keyframes → narration → preview. `from` starts later in the chain. Starting from the script replaces existing scenes, so it needs force: true when scenes exist. Poll d2v_wait afterwards.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
forceboolean
fromstring
use_creditsbooleanPay from the user's credits when the call needs it: $0.50 for a storyboard beyond today's free ones, or AI clips beyond what the purchase covers (the credits_confirm_required error says how much). Onl…

d2v_run_step Run pipeline step

Queue one pipeline step (script, keyframes, narration, preview, clips, assemble), optionally chaining more with `then`. clips and assemble require purchase. Poll d2v_wait afterwards.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
step *string
max_credits_centsintegerWith use_credits: the amount the user agreed to, in cents (the cost_cents you were quoted). If the call would cost more, it asks again instead of charging.
thenarray
use_creditsbooleanPay from the user's credits when the call needs it: $0.50 for a storyboard beyond today's free ones, or AI clips beyond what the purchase covers (the credits_confirm_required error says how much). Onl…

d2v_wait Wait for jobs

Block until the project's queued/running jobs finish or timeout_seconds passes (default 50), then return status. If done is false, call again. Storyboards take several minutes.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
timeout_secondsinteger

d2v_view_storyboard View storyboard

See scene keyframe images with their titles and narration. Pass `scenes` to view specific scene numbers (default: all).

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
scenesarray

d2v_update_scene Update scene

Edit one scene: title, narration text (re-voice with d2v_update_narration), visual engine, approval, or photo. photo accepts a project photo's filename, a document id, an absolute local file path (uploaded), a public link to a photo, or "none" for an AI visual. A photo change regenerates the keyframe unless regenerate_keyframe is false.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
scene *integerScene number (1, 2, 3…)
approvedboolean
narration_textstring
photostring
photo_treatmentstring
regenerate_keyframeboolean
titlestring
visual_modestringstill | kenburns (pan/zoom) | runway (AI video) | veo3 (best AI video)

d2v_regenerate_keyframe Regenerate keyframe

Regenerate one scene's image. With a direction and mode iterate (default when a keyframe exists) the current image is edited; mode fresh creates a new image from the scene description (plus direction). Run the preview step afterwards to update the video.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
scene *integerScene number (1, 2, 3…)
directionstringWhat to change, e.g. "golden-hour light, add the storefront sign"
modestring

d2v_update_narration Update narration

Change a scene's narration and regenerate its voice-over: pass exact `text`, or a `prompt` for an AI rewrite, or neither to just re-voice. regenerate_audio: false saves text only.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
scene *integerScene number (1, 2, 3…)
promptstring
regenerate_audioboolean
textstring

d2v_retry_clip Retry AI clip

Retry a scene's failed AI video clip, optionally on another engine (still/kenburns drop the clip). AI clips require purchase; retrying a failed clip is free, while a pricier engine or a new take of a working clip may cost credits.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
scene *integerScene number (1, 2, 3…)
enginestring
max_credits_centsintegerWith use_credits: the amount the user agreed to, in cents (the cost_cents you were quoted). If the call would cost more, it asks again instead of charging.
use_creditsbooleanPay from the user's credits when the call needs it: $0.50 for a storyboard beyond today's free ones, or AI clips beyond what the purchase covers (the credits_confirm_required error says how much). Onl…

d2v_pull_storyboard Save storyboard locally

Download every keyframe PNG plus a storyboard.md (titles, narration, prompts) to a local folder.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
output_dirstringDefaults to ./d2v-<project-name>

d2v_estimate_cost Estimate cost

Price to unlock AI clips, final assembly and download, broken down by each scene's visual engine. Only AI work is charged: photos used as-is are free except for AI video clips.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name

d2v_get_credits Get credits

The user's prepaid credit balance, free storyboards left today, and recent credit activity.

d2v_unlock_with_credits Unlock with credits

Unlock a project (AI clips, final assembly, download) by paying its price from the user's credits. Only when the user asks; show d2v_estimate_cost first.

ParameterTypeDescription
max_credits_cents *integerThe price the user agreed to, in cents (amount_cents from d2v_estimate_cost). If the price is higher now, nothing is charged and you're asked again.
project *stringProject id, 8-character id prefix, or exact project name

d2v_redeem_promo_code Redeem promo code

Unlock a project with a promo code the user provided (one code per account).

ParameterTypeDescription
code *string
project *stringProject id, 8-character id prefix, or exact project name

d2v_produce_video Produce final video

Generate AI clips for veo3/runway scenes (if needed) then assemble the final video. Requires purchase; only call when the user asks. Clips beyond what the purchase covers (engines changed to pricier ones after buying) need the user's OK to pay from credits. Poll d2v_wait afterwards.

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
max_credits_centsintegerWith use_credits: the amount the user agreed to, in cents (the cost_cents you were quoted). If the call would cost more, it asks again instead of charging.
use_creditsbooleanPay from the user's credits when the call needs it: $0.50 for a storyboard beyond today's free ones, or AI clips beyond what the purchase covers (the credits_confirm_required error says how much). Onl…

d2v_download_video Download final video

Save the final MP4 to this machine (requires purchase).

ParameterTypeDescription
project *stringProject id, 8-character id prefix, or exact project name
output_pathstringDefaults to <project name>.mp4 in the working directory