add_node
Insert a child node under a specified parent in an XMind file, with optional before or after sibling placement for precise map structure.
Instructions
在指定父节点下添加子节点,可用 before_id/after_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": {
"file_path": "<file_path>",
"parent_id": "<parent_id>",
"title": "<title>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | 节点备注(可选) | |
| title | Yes | 新节点标题 | |
| after_id | No | 插到该兄弟节点之后(可选) | |
| auto_save | No | 是否自动保存(默认 false) | |
| before_id | No | 插到该兄弟节点之前(可选) | |
| file_path | Yes | .xmind 文件路径 | |
| parent_id | Yes | 父节点 ID |