Metadata-Version: 2.4
Name: autogen-ext-snaprender
Version: 0.1.0
Summary: AutoGen tools for SnapRender Screenshot API — capture websites as PNG, JPEG, WebP, or PDF
Author-email: SnapRender <support@snap-render.com>
License: MIT
Project-URL: Homepage, https://snap-render.com
Project-URL: Repository, https://github.com/User0856/snaprender-integrations/tree/main/autogen
Project-URL: Documentation, https://snap-render.com
Project-URL: Bug Tracker, https://github.com/User0856/snaprender-integrations/issues
Keywords: autogen,autogen-tool,screenshot,web-capture,snaprender,ai-agent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: autogen-core>=0.4.0
Requires-Dist: snaprender>=0.2.0

# autogen-ext-snaprender

[![PyPI](https://img.shields.io/pypi/v/autogen-ext-snaprender)](https://pypi.org/project/autogen-ext-snaprender/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../LICENSE)

AutoGen tools for [SnapRender Screenshot API](https://snap-render.com). Lets your AutoGen agents capture website screenshots as PNG, JPEG, WebP, or PDF.

## Install

```bash
pip install autogen-ext-snaprender
```

## Setup

```bash
export SNAPRENDER_API_KEY="sk_live_your_key_here"
```

Get a free key at [app.snap-render.com](https://app.snap-render.com/auth/signup) — 50 screenshots/month, no credit card.

## Usage

```python
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
