Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

crewai-snaprender

PyPI License: MIT

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

Install

pip install crewai-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 crewai import Agent, Task, Crew
from crewai_snaprender import SnapRenderScreenshotTool, SnapRenderCacheTool, SnapRenderUsageTool

researcher = Agent(
    role="Web Researcher",
    goal="Capture and analyze website screenshots",
    backstory="You are a visual web analyst.",
    tools=[SnapRenderScreenshotTool(), SnapRenderCacheTool(), SnapRenderUsageTool()],
)

task = Task(
    description="Take a screenshot of stripe.com in dark mode on iPhone",
    expected_output="Screenshot file path and metadata",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()

Tools

SnapRenderScreenshotTool

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

SnapRenderCacheTool

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

SnapRenderUsageTool

Get current month's usage stats.

License

MIT