query_elements
Find and inspect canvas elements using CSS-like selectors (tags, #id, data attributes) to locate items by type or ID before modifying them.
Instructions
Query and search for specific elements in your Rapport canvas using CSS-like selectors. Useful for finding elements by type, ID, or data attributes before modifying them. Automatically queries your canvas using your authenticated user account.
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": {
"selector": "<selector>"
},
"name": "query_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector (supports: tag names like "rect" or "circle", #id for specific elements, [data-type="value"] for element types) |