List Surface Elements
list_surface_elementsLists all shape, connector, text, and group elements on an AFFiNE edgeless canvas, with parsed bounds and optional filters by type or element ID.
Instructions
List all shape/connector/text/group elements on the AFFiNE edgeless canvas surface. Returns raw xywh strings plus parsed {x,y,width,height} bounds, with Y.Text fields serialized to plain strings. Optional filters by element type or id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by element type | |
| docId | Yes | Document ID | |
| elementId | No | Filter to a single element id | |
| workspaceId | No | Workspace ID (optional if default set) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| count | No | ||
| docId | No | ||
| error | No | ||
| exists | No | ||
| details | No | ||
| elements | No | ||
| causeCode | No | ||
| retryable | No | ||
| surfaceBlockId | No | ||
| recoveryGuidance | No |