ui_mouse_click
Clicks exact pixel coordinates in the TradingView window to select chart elements, open menus, or control drawings with left, right, middle, or double-click actions.
Instructions
Click at specific x,y coordinates on the TradingView window
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": {
"x": "<x>",
"y": "<y>"
},
"name": "ui_mouse_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate (pixels from left) | |
| y | Yes | Y coordinate (pixels from top) | |
| button | No | Mouse button (default left) | |
| double_click | No | Double click (default false) |