bind_paper_slot
Bind an existing paper to a lesson slot, unbind it, or mark the entire lesson as ready. Manages paper-slot relationships after composition.
Instructions
🔴 PRD-B-101 备课卷位绑定管理(绑既有卷 / 解绑 / 标记已备好)→ 备课线。返回 {ok, paper_slots, prep_state}。
备课主路 = 组卷时直接带 lesson_id+slot_seq 建卷即自动绑(create_paper/compose_paper); 本工具是事后管理:把已有卷挂到卷位(D7 兜底)、解绑、或手动标记整课次已备好。 🔴 备课卷私有,本工具不含任何公开化能力(绝不 set-public)。 参数: lesson_id : 课次 id(字符串雪花号)——必填。 slot_seq : 卷位序号(≥1)——action=bind/unbind 必填;action=manual_ready 忽略(课次级)。 action : 动作枚举—— 'bind' 绑既有卷到卷位(传 paper_id,必须真实存在且归我;BE 自动置该卷 paper_kind='2') 'unbind' 解绑卷位(卷留库不删;🔴 解绑会自动清该课次 manual_ready=false) 'manual_ready' 手动标记整课次备课态(传 ready;0 卷位课次 → BE 400) paper_id : action=bind 时必填(要挂的既有卷 id,字符串雪花号)。 ready : action=manual_ready 时的目标态(True=已备好,默认 True)。 返回: {ok, paper_slots:[...], prep_state:'0未备/1备课中/2已备好'};异常 → {ok:false, error}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | No | ||
| action | No | bind | |
| paper_id | No | ||
| slot_seq | No | ||
| lesson_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||