AutoGen tools for SnapRender Screenshot API. Lets your AutoGen agents capture website screenshots as PNG, JPEG, WebP, or PDF.
pip install autogen-ext-snaprenderexport SNAPRENDER_API_KEY="sk_live_your_key_here"Get a free key at snap-render.com — 200 screenshots/month, no credit card.
from autogen_ext_snaprender import screenshot_tool, cache_tool, usage_tool
# Use with AssistantAgent
from autogen_agentchat.agents import AssistantAgent
agent = AssistantAgent(
"web_agent",
model_client=model_client,
tools=[screenshot_tool, cache_tool, usage_tool],
)Capture any website as PNG, JPEG, WebP, or PDF with device emulation, dark mode, ad blocking, and more.
Check if a screenshot is cached (free, doesn't count against quota).
Get current month's usage stats.
MIT