trading_agent.tools.browser_open_tool
¶
The browser_open tool: opens a page in Chrome and returns its snapshot.
Typical usage example:
tool = BrowserOpenTool(session)
BrowserOpenArguments
¶
Bases: BaseModel
The arguments of browser_open.
Attributes:
| Name | Type | Description |
|---|---|---|
url |
str
|
The page's address, starting with http:// or https://. |
BrowserOpenTool
¶
Bases: BrowserTool
Opens a page.
Source code in src/trading_agent/tools/browser_tool.py
run
async
¶
Opens the page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
BrowserOpenArguments
|
The page's address. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
The page's snapshot, or an error. |