Update Edgeless Block
update_edgeless_blockPartially update an edgeless note, frame, or text block by ID: merge x/y/width/height, replace background, and report fields ignored for that block type.
Instructions
Partially update a note/frame/edgeless-text block by id. x/y/width/height merge with current prop:xywh (move without resizing, or vice versa). background replaces prop:background (AFFiNE token or {light, dark} hex object). Fields that don't apply to the block's flavour come back under ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| docId | Yes | Document ID | |
| width | No | ||
| height | No | ||
| blockId | Yes | Block id (flavour affine:note/affine:frame/affine:edgeless-text). | |
| background | No | Note/frame only. Prefer `--affine-note-background-<color>` or `{light, dark}` hex. | |
| workspaceId | No | Workspace ID (optional if default set) | |
| 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 | ||
| error | No | ||
| blockId | No | ||
| changed | No | ||
| details | No | ||
| flavour | No | ||
| ignored | No | ||
| updated | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |