Browser automation tools — Playwright-based web interaction.
Bases: BaseTool
Navigate to a URL in the browser.
Bases: BaseTool
Click an element on the page.
Bases: BaseTool
Type text into a form field.
BrowserScreenshotTool(allowed_dirs: Optional[List[str]] = None)
Bases: BaseTool
Take a screenshot of the current page.
Source code in src/openjarvis/tools/browser.py
| def __init__(self, allowed_dirs: Optional[List[str]] = None) -> None:
self._allowed_dirs = [
Path(d).expanduser().resolve() for d in resolve_allowed_dirs(allowed_dirs)
]
|
Bases: BaseTool
Extract content from the current page.