add_book_node
Add a hierarchically structured directory node (e.g., chapter, lecture) to a book. Specify parent for nesting or leave blank for root. Returns the node ID.
Instructions
给书加一个目录节点。node_type 自由值(chapter章/lecture讲/qtype_group题型组/tier难度档/sec区块…)。
parent_id 省 = 根层节点;kp_id 可选(KG 锚,仅标签,与树结构解耦 D8)。 节点名 name 卷面可见——🔴 禁内部词(层/★/素材/薄弱),只写干净知识点名。 返回 {ok, node_id(str)}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | No | ||
| name | Yes | ||
| kp_id | No | ||
| book_id | Yes | ||
| node_type | No | sec | |
| parent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||