Workflow at a glance
Claude handles the orchestration. Medux handles the AI video processing.
Prerequisites
character.mp4 and a reference character image such as character.jpg.Example project folder/Users/your-name/projects/medux-character-replacement/
├── character.mp4
└── character.jpgStep-by-step guide
Give Claude one clear instruction
Describe the target video, the reference image, and the desired outcome in one request. Claude can then plan the workflow and choose the correct Medux tools.
PromptPerform a video character replacement by replacing the person in
character.mp4 with the character from character.jpg.
Upload the files using curl commands.
Create upload URLs and send both files
Claude calls medux_file_create_upload_url for the MP4 and JPG, then uploads them to the returned signed URLs. In the recorded workflow, Claude uses curl because direct uploads are restricted by the sandbox network.
Upload patterncurl -X PUT -H "Content-Type: video/mp4" --data-binary @"/path/to/character.mp4" "SIGNED_UPLOAD_URL_FOR_VIDEO"
curl -X PUT -H "Content-Type: image/jpeg" --data-binary @"/path/to/character.jpg" "SIGNED_UPLOAD_URL_FOR_IMAGE"Long paths and signed URLs wrap inside the code block, so the command stays within the page width on desktop and mobile.

Start the Medux character-replacement job
After both uploads succeed, Claude passes the uploaded file references to medux_video_character_replacement. Medux then analyzes the source clip, follows the original motion, and renders the new character into the scene.

Let Claude monitor the render
The Medux task may remain queued or processing for several minutes. Claude uses medux_task_query to check the status repeatedly, so you do not need to manually refresh another dashboard.
Status logicQUEUED → PROCESSING → COMPLETED
If the task is still processing:
wait briefly, then call medux_task_query again.
Open the completed video
When the task reaches COMPLETED, Claude returns the output link. Open it to review the replacement, confirm that motion and scene continuity are preserved, and save the final file.
Result returned by Medux

Example result
src / tgt / rst demonstration
Below is the complete character-replacement example: src is the original source video, tgt is the reference character, and rst is the final video generated by Medux.

Why use Medux through MCP?
The workflow stays inside Claude: one prompt, automatic file preparation, tool selection, task submission, status checks, and result retrieval. You avoid building a separate upload interface or writing a custom API client for every video operation.
Quick recap
character.mp4 + character.jpg
↓
Claude locates the files
↓
Medux creates signed upload URLs
↓
curl uploads both assets
↓
medux_video_character_replacement
↓
medux_task_query until COMPLETED
↓
Download the replaced-character videoExplore related workflows
Continue with a nearby Medux workflow or compare how the same task works across Claude MCP and Codex MCP.
