trading_agent.tools.browser_snapshot_tool
¶
The browser_snapshot tool: lists the current page's numbered elements and text again.
Typical usage example:
tool = BrowserSnapshotTool(session)
BrowserSnapshotTool
¶
Bases: BrowserTool
Takes a fresh snapshot of the current page.
Source code in src/trading_agent/tools/browser_tool.py
run
async
¶
Takes the snapshot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
NoArguments
|
No arguments. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
The snapshot, or an error. |