pencil2d_add_audio
Attach a WAV or MP3 sound clip to a sound layer at a chosen keyframe, so you can sync audio with animation timing.
Instructions
Attach a sound clip (WAV/MP3) to a sound layer at a specific keyframe in the animation.
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": {
"project_path": "<project_path>",
"audio_path": "<audio_path>"
},
"name": "pencil2d_add_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | Keyframe number where audio starts playing (default 1). | |
| audio_path | Yes | Path to audio file (.wav, .mp3) to embed. | |
| layer_name | No | Sound layer name (default 'Sound Layer'). | |
| project_path | Yes | Path to the .pclx file. |