发布或编辑课程公告
lexue_save_announcementSave a course announcement with its title, body, and optional local attachments; when editing, include the existing title to update the post. The platform may publish it immediately.
Instructions
保存课程公告的标题、正文及可选本地附件。平台可能立即发布。编辑时给出现有标题。
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>",
"title": "<title>",
"body": "<body>"
},
"name": "lexue_save_announcement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| files | No | ||
| title | Yes | ||
| courseId | Yes | 新乐学课程编号,例如 lexue_list_courses 返回的 courseId | |
| existingTitle | No |