trading_agent.tools.browser_click_tool
¶
The browser_click tool: clicks a numbered element from the latest snapshot.
Typical usage example:
tool = BrowserClickTool(session)
BrowserClickArguments
¶
Bases: BaseModel
The arguments of browser_click.
Attributes:
| Name | Type | Description |
|---|---|---|
element |
int
|
The element's number from the latest snapshot. |
BrowserClickTool
¶
Bases: BrowserTool
Clicks an element.
Source code in src/trading_agent/tools/browser_tool.py
run
async
¶
Clicks the element.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
BrowserClickArguments
|
The element's number. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
The new snapshot, or an error. |