create_lipsync
Synchronize audio with video to create lipsync videos by providing video and audio URLs. This tool generates videos where mouth movements match the audio track.
Instructions
Create a lipsync video by synchronizing audio with video
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_url": "<video_url>",
"audio_url": "<audio_url>"
},
"name": "create_lipsync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_url | Yes | URL to the source video | |
| audio_url | Yes | URL to the audio file to sync | |
| callback_url | No | URL to receive completion callback |
Implementation Reference
- src/index.ts:1002-1010 (handler)The createLipsync handler method that makes a POST request to /lipsync endpoint with the provided arguments and returns the response data
private async createLipsync(args: any) { const response = await this.axiosInstance.post('/lipsync', args); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2), }], }; } - src/index.ts:543-565 (schema)Tool definition with name 'create_lipsync', description, and inputSchema specifying video_url, audio_url (required), and callback_url (optional) parameters
// Lipsync { name: 'create_lipsync', description: 'Create a lipsync video by synchronizing audio with video', inputSchema: { type: 'object', properties: { video_url: { type: 'string', description: 'URL to the source video', }, audio_url: { type: 'string', description: 'URL to the audio file to sync', }, callback_url: { type: 'string', description: 'URL to receive completion callback', }, }, required: ['video_url', 'audio_url'], }, }, - src/index.ts:740-741 (registration)Switch case routing 'create_lipsync' tool calls to the createLipsync handler method
case 'create_lipsync': return await this.createLipsync(request.params.arguments);