Set Native Mindmap Lock
set_mindmap_lockSet or clear a mindmap's native editor lock flag so its nodes inherit the lock; unlocking does not clear ancestor-group or independently locked node flags.
Instructions
Set the mindmap's native lockedBySelf flag. Nodes inherit the lock in AFFiNE. Unlock does not clear ancestor-group or independently locked node flags; read the returned effective locked state. Does not change layout or styles. This is an editor lock, not an access-control boundary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | ||
| locked | 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 | ||
| 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 |