add_fade
Add fade-in and fade-out transitions to video, audio, or both. Specify durations in seconds to control the opening and closing of media files.
Instructions
Add a fade-in and/or fade-out to a video, audio, or both.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "add_fade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | both | |
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| output_path | Yes | Destination path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| fade_in_duration | No | Fade-in length in seconds | |
| fade_out_duration | No | Fade-out length in seconds |