LangChain tools for the Unbrowse CLI — reverse-engineer any website into reusable API skills.
Project description
unbrowse-langchain
LangChain tools for the Unbrowse CLI — reverse-engineer any website into reusable API skills.
Installation
pip install unbrowse-langchain
Requires the unbrowse CLI to be installed and available on PATH (or specify a custom path).
Quick start
from unbrowse_langchain import create_unbrowse_toolkit
tools = create_unbrowse_toolkit()
With a LangChain agent
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from unbrowse_langchain import create_unbrowse_toolkit
llm = ChatOpenAI(model="gpt-4o")
tools = create_unbrowse_toolkit()
agent = create_react_agent(llm, tools)
result = agent.invoke({
"messages": [("user", "Find API skills for getting weather data")]
})
Individual tools
from unbrowse_langchain import UnbrowseResolveTool, UnbrowseSearchTool
resolve = UnbrowseResolveTool()
result = resolve.invoke({
"intent": "get product prices",
"url": "https://example.com/products",
})
search = UnbrowseSearchTool()
result = search.invoke({"intent": "weather forecast api"})
Custom CLI path
tools = create_unbrowse_toolkit(bin_path="/opt/bin/unbrowse", timeout=60)
Available tools
| Tool | Action | Required args |
|---|---|---|
unbrowse_resolve |
Reverse-engineer a page into an API skill | intent, url |
unbrowse_search |
Search the skill marketplace | intent |
unbrowse_execute |
Execute a skill endpoint | skill_id, endpoint_id |
unbrowse_login |
Authenticate with a site | url |
unbrowse_skills |
List cached skills | — |
unbrowse_skill |
Inspect a skill | skill_id |
unbrowse_health |
Health check | — |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unbrowse_langchain-2.0.5.dev20260322015420.tar.gz.
File metadata
- Download URL: unbrowse_langchain-2.0.5.dev20260322015420.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbdc7ce3cfc589f876fb8cffbd44bb6354a747e806db23c05bc99e74e9a34350
|
|
| MD5 |
a1a1b33bcb492565ea0ea3b7f42214d5
|
|
| BLAKE2b-256 |
4ac1088c59ea825281f98b9e731f7fc0bdcae9c2d6a84bb361410e22edc078b7
|
File details
Details for the file unbrowse_langchain-2.0.5.dev20260322015420-py3-none-any.whl.
File metadata
- Download URL: unbrowse_langchain-2.0.5.dev20260322015420-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7aaf8e4c94c15257fabf4ed76cec09876f2bc4208a849fa6e89460b2d1b3b4
|
|
| MD5 |
346b1fd711af47ff231e458a1ccacf69
|
|
| BLAKE2b-256 |
7c6687820af6195a6abaa01c63f4ee50064f4f475f04211d4f7b30bf9d63fb30
|