Find elements on the board
query_elementsQuery elements on a canvas. Requires room_id from a previous Canvs tool result. Returns elements matching optional filters. Use this before update_elements when making small edits to existing diagrams. If no browser has the canvas open, returns an error — ask the user to open the canvas URL in their browser and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by element type | |
| filter | No | Additional key-value filters (e.g., {locked: true}) | |
| room_id | Yes | Room ID from a previous Canvs tool result. If you only have a URL, extract it from https://[host]/?room=[room_id] or https://[host]/gdrive?id=[room_id]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of matching elements | |
| elements | Yes | Matching elements |