ui_find_element
Locate a TradingView UI element by text, aria-label, or CSS selector to get its bounding box coordinates and visibility before clicking or hovering; read-only DOM query.
Instructions
Locate a UI element by text, aria-label, or CSS selector and return its bounding box coordinates and visibility. WHEN TO USE: Call to verify element existence and obtain coordinates before clicking or hovering. SIDE EFFECTS: None (Read-only DOM query). LIMITATIONS: Scans active DOM tree.
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": {
"query": "<query>"
},
"name": "ui_find_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text content, aria-label value, or CSS selector to search for | |
| strategy | No | Search strategy (default: text) |