创建LMS单元
classin_create_unitCreates a new LMS learning unit under a course. Provide course ID and unit name; optionally set content and publish status (draft or published).
Instructions
在课程下创建LMS学习单元。
注意: 使用 API v2,课程下不支持创建同名单元。
参数:
courseId: 课程ID
name: 单元名称(最长50字符)
content: 单元介绍(可选)
publishFlag: 发布状态 (0=草稿, 2=已发布,默认2)
返回:
成功返回单元ID
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": {
"courseId": "<courseId>",
"name": "<name>"
},
"name": "classin_create_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 单元名称,最长50字符,课程下不支持创建同名单元 | |
| content | No | 单元介绍 | |
| courseId | Yes | 课程ID,通过创建课程接口获得 | |
| publishFlag | No | 发布状态: 0=草稿, 2=已发布 | |
| response_format | No | 输出格式: 'markdown' 人类可读格式 或 'json' 机器可读格式 | markdown |