Integration langchain
Give LangChain the web without giving up your privacy.
Cited answers, clean Markdown, matching JSON, and browser tasks for LangChain, as native LangChain tools in TypeScript and Python.
@tabstack/langchain
ollama.com/blog
docs.openwebui.com
ANSWER
Two runtimes shipped it.
Why LangChain
Tabstack, inside LangChain.
@tabstack/langchain and langchain-tabstack add Tabstack to LangChain as native tools, in TypeScript and Python. Your agent gets cited research, clean page content, matching JSON, and browser tasks, with the page work done on Tabstack instead of in your process.
post /research
query: "which runtimes…"
mode: "balanced"First call
Start with a current question.
LangChain makes the call, and Tabstack handles the web. Research searches live sources, reads the pages, and returns a cited answer, so your agent gets the findings without running every search itself.
# TypeScript
npm install @tabstack/langchain @langchain/core zod
# Python
pip install langchain-tabstack
export TABSTACK_API_KEY="your-key-here"
import { createAgent } from "langchain";
import { tabstackTools } from "@tabstack/langchain";
const agent = createAgent({
model: "openai:gpt-4o",
tools: tabstackTools,
systemPrompt: "You are a research assistant with web research and extraction tools.",
});
const result = await agent.invoke({
messages: [{ role: "user", content: "What are Vercel's pricing plans?" }],
});
console.log(result.messages.at(-1)?.content);
Tools
Five tools, one key.
Both packages expose the same five tools with the same names and inputs, so an agent moves between TypeScript and Python unchanged.
| Tool | Returns |
|---|---|
research_question | A cited answer from multiple live sources |
extract_page_content | A page as clean Markdown |
extract_structured_data | JSON matching a schema you define |
generate_structured_data | A page transformed into the JSON you describe |
automate_browser_task | A completed browser task, from plain-language steps |