Move Block
move_blockMove an existing block to a new parent or position while preserving its ID, with validation that rejects document-root moves and cycles.
Instructions
Move an existing block without changing its id. Reuses append_block placement semantics and rejects document-root moves and cycles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| blockId | Yes | Block id to move. | |
| placement | Yes | Destination parent or position, using append_block placement semantics. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| 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 | ||
| block | No | ||
| error | No | ||
| moved | No | ||
| blockId | No | ||
| details | No | ||
| toIndex | No | ||
| causeCode | No | ||
| fromIndex | No | ||
| retryable | No | ||
| toParentId | No | ||
| fromParentId | No | ||
| recoveryGuidance | No |