Skip to content

Latest commit

 

History

History

README.md

autogen-ext-snaprender

PyPI License: MIT

AutoGen tools for SnapRender Screenshot API. Lets your AutoGen agents capture website screenshots as PNG, JPEG, WebP, or PDF.

Install

pip install autogen-ext-snaprender

Setup

export SNAPRENDER_API_KEY="sk_live_your_key_here"

Get a free key at snap-render.com — 200 screenshots/month, no credit card.

Usage

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],
)

Tools

screenshot_tool

Capture any website as PNG, JPEG, WebP, or PDF with device emulation, dark mode, ad blocking, and more.

cache_tool

Check if a screenshot is cached (free, doesn't count against quota).

usage_tool

Get current month's usage stats.

License

MIT