video_to_gif
Convert video clips to animated GIFs with customizable start time, duration, width, frame rate, and quality.
Instructions
视频转GIF动图
Args:
input_path: 输入视频文件路径
output_path: 输出GIF文件路径(可选)
start_time: 开始时间(格式:HH:MM:SS,可选)
duration: 持续时间(格式:HH:MM:SS,可选)
width: GIF宽度像素(高度自动按比例缩放)
fps: 帧率(建议5-15)
quality: 质量设置(high, medium, low)
Returns:
转换结果信息
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>"
},
"name": "video_to_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| output_path | No | ||
| start_time | No | ||
| duration | No | ||
| width | No | ||
| fps | No | ||
| quality | No | medium |