langchain-context package exposes Context.dev operations as LangChain BaseTool classes. Use individual tools directly or give an agent a focused toolkit for live web research, scraping, crawling, extraction, document parsing, brand intelligence, monitors, and batch jobs.
View Context.dev for LangChain
Inspect the package source, examples, tests, and releases.
Prerequisites
- Python 3.10 through 3.14
- A Context.dev account with an API key and credits for tool calls
Install and configure
1
Install the package
2
Set your API key
Copy a secret key from the Context.dev dashboard, then set it in your server environment:Tools read
CONTEXT_API_KEY automatically. You can also pass api_key to a tool or toolkit when your application already manages secrets securely.Use a tool directly
Every Context.dev operation supports LangChain’s synchronousinvoke interface:
ContextScrape. The returned Markdown includes the timestamped transcript when one is available.
Give tools to an agent
ContextToolkit is safe by default: it includes read operations and removes browser actions from scraping tools. Pass its result to any LangChain agent that accepts a list of tools.
Use a focused toolkit when you do not need every group:
Enable side effects explicitly
Monitor and batch mutations are excluded unless you opt in. Browser actions are also removed from scraping tools by default.Use async tools
Every tool also supports LangChain’s asynchronousainvoke interface:
Troubleshooting
Reference
PyPI package
Install the current release and review its Python requirements.
Package source
Read the complete tool catalog, examples, and test suite.
LangChain tools
Learn how tools are defined, invoked, and attached to agents.
Context.dev API reference
Review the underlying API operations and request schemas.