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.
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": {
"room_id": "<room_id>"
},
"name": "query_elements"
}
}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://canvs.io/app/?room=[room_id] or https://canvs.io/app/?gdrive=[room_id]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of matching elements | |
| elements | Yes | Matching elements |