List Surface Elements
list_surface_elementsList all shape, connector, text, and group elements on an AFFiNE edgeless canvas. Returns raw xywh strings and parsed bounds, with Y.Text fields serialized, and supports filtering by type or 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 |
|---|---|---|---|
| count | Yes | ||
| docId | Yes | ||
| exists | Yes | ||
| elements | Yes | ||
| surfaceBlockId | Yes |