convert_format
Convert video or audio files to a different container or codec. The output format is determined by the destination file extension, so you can change .mp4 to .mov, .webm, .avi, .mp3, and more.
Instructions
Convert a video/audio file to a different container/codec. The output format is inferred from the output_path extension (e.g. .mp4, .mov, .webm, .avi, .mp3).
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": "convert_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Source media 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 with the desired extension. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |