Update Edgeless Block
update_edgeless_blockPartially update AFFiNE edgeless blocks by ID: adjust position, size, or background while preserving other properties.
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.
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": {
"docId": "<docId>",
"blockId": "<blockId>"
},
"name": "update_edgeless_block"
}
}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) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockId | Yes | ||
| changed | Yes | ||
| flavour | Yes | ||
| ignored | Yes | ||
| updated | Yes |