langchain-snaprender
LangChain / LangGraph tools for SnapRender Screenshot API. Lets your LangChain agents capture website screenshots as PNG, JPEG, WebP, or PDF.
Install
pip install langchain-snaprender
Setup
export SNAPRENDER_API_KEY="sk_live_your_key_here"
Get a free key at snap-render.com. 200 screenshots a month, no credit card.
Usage
from langchain_snaprender import take_screenshot, check_cache, get_usage
# Use as standalone tools
result = take_screenshot.invoke({"url": "https://example.com"})
print(result)
# Or bind to a LangChain agent
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
llm = ChatOpenAI(model="gpt-4o")
tools = [take_screenshot, check_cache, get_usage]
agent = create_react_agent(llm, tools)
response = agent.invoke({"messages": [("user", "Take a screenshot of stripe.com")]})
Tools
take_screenshot
Capture any website as PNG, JPEG, WebP, or PDF.
Parameters: url, format, full_page, dark_mode, block_ads, block_cookie_banners, device, width, height
check_cache
Check if a screenshot is cached (free, doesn't count against quota).
Parameters: url, format
get_usage
Get current month's usage stats.
License
MIT
Metadata
Release files for langchain-snaprender 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_snaprender-0.1.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_snaprender-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / langchain_snaprender-0.1.1.tar.gz
| Download URL | langchain_snaprender-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab81b487cd1c526a3b5a913efd258f7c6036d0063363e027df9bd5bbbbd21127
|
|
BLAKE2b-256 checksum How to use checksums |
7a275d1b6a7fdc77d57a4b3309a03c681e5b2bdb1146068a0c5f349faf12c33a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / langchain_snaprender-0.1.1-py3-none-any.whl
| Download URL | langchain_snaprender-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd2dd89cbf9799396e91fb6091a3dc50e520a1ead716b0e24933269098aa5c25
|
|
BLAKE2b-256 checksum How to use checksums |
cc5c6132b8a729ce5f12b643761eef614f8deb776ea877f4ca3ae35c04233cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|