archive_target
Archive a teaching target to soft-delete it, removing from scheduling while preserving history, and cancel its future sessions. Unarchive to restore the target without recovering canceled sessions.
Instructions
归档 / 取消归档教学对象(学生·班级的「软删除」)→ :9090。 返回 {ok, id, archived, cancelled_sessions?}。
🔴 归档 = 本系统的「删学生」:对象移出排课选择器、历史保留(非硬删)。 归档会联动取消该对象未来未上的场次,cancelled_sessions 返回联动取消的场次数。 取消归档(archived=False)只解归档标记、不恢复已取消场次(复课需重新排课)。 参数: target_id : 对象 id(字符串雪花号) archived : True=归档(软删,默认)| False=取消归档(复用)
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": {
"target_id": "<target_id>"
},
"name": "archive_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| archived | No | ||
| target_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||