upload_material
Upload images or videos to OSS. Returns signed URL, duration, and timeline hints; videos are transcoded to H.264 MP4 for playback.
Instructions
上传图片或视频到 OSS,返回 ossKey、signedUrl(默认可为公网直链,字段名不变)、时长与「时间轴/原声」提示。视频在后端会转码为 H.264 MP4(便于录屏解码),写入 HTML 时 src 用返回的 URL;不写入 FFmpeg overlay。视频建议 5–15 秒;时长硬上限 10 分钟,单文件上限见 get_material_guidelines。
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_id": "<project_id>",
"media_file": "<media_file>"
},
"name": "upload_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 项目 ID | |
| media_file | Yes | 本地素材文件绝对或相对路径 |