Metadata-Version: 2.5
Name: auto-browser-langchain
Version: 1.8.1
Summary: LangChain / LangGraph / CrewAI integration for auto-browser
Project-URL: Homepage, https://github.com/LvcidPsyche/auto-browser
Project-URL: Repository, https://github.com/LvcidPsyche/auto-browser
Project-URL: Changelog, https://github.com/LvcidPsyche/auto-browser/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/LvcidPsyche/auto-browser/issues
License-Expression: MIT
Keywords: auto-browser,browser-automation,crewai,langchain,langgraph
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Provides-Extra: crewai
Requires-Dist: crewai>=0.28; extra == 'crewai'
Provides-Extra: dev
Requires-Dist: langchain-core>=0.2; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: respx; extra == 'dev'
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.2; extra == 'langchain'
Description-Content-Type: text/markdown

# auto-browser LangChain Integration

LangChain, LangGraph and CrewAI adapters for [Auto Browser](https://github.com/LvcidPsyche/auto-browser).
They call a running Auto Browser controller over its MCP tool endpoint.

```bash
pip install "auto-browser-langchain[langchain]"   # LangChain / LangGraph
pip install "auto-browser-langchain[crewai]"      # CrewAI
```

`AutoBrowserTool` is one LangChain tool that takes an MCP tool name and its
arguments, so the model can use every tool the controller serves:

```python
from auto_browser_langchain import AutoBrowserTool

tool = AutoBrowserTool(base_url="http://localhost:8000", bearer_token=None)
print(tool.invoke({"action": "browser.observe", "arguments": {"preset": "text"}}))
```

`AutoBrowserNode` is a LangGraph node that opens a session and records the
current URL and screenshot in the graph state.

Full walkthroughs:
[LangChain / LangGraph](https://github.com/LvcidPsyche/auto-browser/blob/main/examples/langchain-integration.md) ·
[CrewAI](https://github.com/LvcidPsyche/auto-browser/blob/main/examples/crewai-integration.md)
