Add Native Mindmap Node
add_mindmap_nodeAdds a child shape node under a specified parent in an AFFiNE mindmap, optionally before a sibling, and returns the new node ID while persisting hierarchy and layout.
Instructions
Add one native child shape to parentId inside mindmapId. beforeId optionally inserts before a sibling; otherwise append. Returns nodeId. Persists hierarchy and layout together. Maximum 500 nodes, depth 64; shape nodes only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| docId | Yes | ||
| beforeId | No | ||
| parentId | Yes | ||
| mindmapId | Yes | ||
| workspaceId | No | ||
| expectedRevision | No | Optional read_doc revision of this primary document. Reject stale content before writing. Covers document content, not workspace metadata; requires all writers to share one MCP server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| docId | No | ||
| error | No | ||
| nodes | No | ||
| style | No | ||
| layout | No | ||
| locked | No | ||
| nodeId | No | ||
| rootId | No | ||
| details | No | ||
| causeCode | No | ||
| mindmapId | No | ||
| nodeCount | No | ||
| retryable | No | ||
| layoutType | No | ||
| workspaceId | No | ||
| lockedBySelf | No | ||
| surfaceBlockId | No | ||
| lockedByAncestor | No | ||
| recoveryGuidance | No | ||
| supportedLayouts | No |