Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unbrowse_langchain-2.0.5.dev20260322015420.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file unbrowse_langchain-2.0.5.dev20260322015420.tar.gz.

File metadata

File hashes

Hashes for unbrowse_langchain-2.0.5.dev20260322015420.tar.gz
Algorithm Hash digest
SHA256 dbdc7ce3cfc589f876fb8cffbd44bb6354a747e806db23c05bc99e74e9a34350
MD5 a1a1b33bcb492565ea0ea3b7f42214d5
BLAKE2b-256 4ac1088c59ea825281f98b9e731f7fc0bdcae9c2d6a84bb361410e22edc078b7

See more details on using hashes here.

File details

Details for the file unbrowse_langchain-2.0.5.dev20260322015420-py3-none-any.whl.

File metadata

File hashes

Hashes for unbrowse_langchain-2.0.5.dev20260322015420-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7aaf8e4c94c15257fabf4ed76cec09876f2bc4208a849fa6e89460b2d1b3b4
MD5 346b1fd711af47ff231e458a1ccacf69
BLAKE2b-256 7c6687820af6195a6abaa01c63f4ee50064f4f475f04211d4f7b30bf9d63fb30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page