Find nodes
find_nodesFind elements by their text, classes, tag, attribute or layer name, and get their ids without reading the whole HTML. Returns one compact line per match (id, tag, a few classes, text, path). With frameId, also the elements that component instances draw there, as instanceId>elementId (the render tools' nodeId).
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": {
"fileId": "<fileId>"
},
"name": "find_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| attr | No | Attribute name, or name=value: "data-lucide=search", "data-each". | |
| name | No | Layer name (data-name, data-component, data-use) or template name (data-each="rows"). | |
| text | No | Text contained (case-insensitive). | |
| class | No | Classes the element has, all of them: "rounded-full bg-blue-600". | |
| limit | No | ||
| fileId | Yes | ||
| frameId | No | Search in this frame (or element) only. |