Playwright
BrowserExecutionEngine represents a browser execution engine that can be used to perform actions on the browser in response to a user action.
PlaywrightBrowserExecutionEngine is an implementation of a BrowserExecutionEngine that uses Playwright Java API for performing browser actions.
BrowserUseTool executes browser actions using BrowserExecutionEngine, that can be useful for Browser-Use Agents. You can control your browser using natural language, something like:
open page 'https://docs.langchain4j.dev/', and summary the page text
Maven Dependency
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-community-browser-execution-engine-playwright</artifactId>
<version>${latest version here}</version>
</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-community-tool-browser-use</artifactId>
<version>${latest version here}</version>
</dependency>
APIs
BrowserExecutionEnginePlaywrightBrowserExecutionEngineBrowserUseTool