Langchain Selenium Browser
Selenium Web browser tool for langchain
Install / Use
npx skills add Altaflux/langchain-selenium-browserInstalls into whichever agent you are using.
README
langchain-selenium-browser
A langchain web browser tool based on Selenium
Usage:
const WebBrowserToolKit = require('langchain-selenium-browser').WebBrowserToolKit;
const model = new ChatOpenAI({
openAIApiKey: process.env.OPENAI_API_KEY,
temperature: 0.9,
});
const embeddings = new OpenAIEmbeddings({
openAIApiKey: process.env.OPENAI_API_KEY,
});
const webToolKit = new WebBrowserToolKit({
browserConfig: {
browserName: "chrome", // chrome, firefox, edge
disableHeadless: false // set to true to see the browser, false by default
},
maximumChunkSize: 3000, // size of chunks to split the website content into, defaults to 3000
numberOfRelevantDocuments: 2, // Max number of chunks to use when analyzing a website page, defaults to 2, set to 'all' to use all chunks (slow)
}, model, embeddings);
//Add to agents tool:
tools: [
...webToolKit.tools,
],
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
