上传课件到云课堂
cloudclass_upload_resourceUpload a local ZIP, HTML file, or folder containing index.html to publish courseware as a teacher or admin; folders are packaged automatically.
Instructions
Upload a local .zip, .html/.htm file, or a folder containing index.html. Folders are zipped automatically. The token account must be a teacher or admin.
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": {
"source_path": "<source_path>",
"title": "<title>"
},
"name": "cloudclass_upload_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 标签数组,例如 ["农业","地理"] | |
| cover | No | 封面配色 | |
| title | Yes | 资源标题,2–60 字 | |
| summary | No | 资源简介,200 字以内 | |
| category | No | 学科分类 | |
| className | No | visibility=class 时必填 | |
| visibility | No | public 公开;class 仅指定班级 | |
| source_path | Yes | 本地绝对路径:zip、html,或包含 index.html 的文件夹 |