image-fetcher
Asset Fetcher
When to use
Use the Asset Fetcher when you need to acquire visual assets for content creation. It supports three acquisition modes: web image search, live website screenshots via Playwright, and organizing user-provided files. All assets are saved to the squad's reference or output folder with descriptive filenames and metadata.
Instructions
Capabilities
-
Web Image Search -- Use the native web_search tool to find images by keyword. Evaluate results and download the best match.
-
Live Screenshot -- Use Playwright MCP to navigate to a URL, set viewport dimensions, and capture a screenshot.
-
Asset Organization -- Save all acquired assets with descriptive filenames in the squad's reference/ or output/ folder.
Screenshot Modes
- viewport -- Capture only the visible viewport area (default)
- full_page -- Capture the entire scrollable page
- selector -- Capture a specific CSS selector element
Screenshot Workflow
When taking a screenshot:
- Navigate to the URL with
browser_navigate - Set viewport:
browser_resizewith width/height for target format- Instagram post: 1080x1080
- Instagram carousel: 1080x1440
- Story/Reel: 1080x1920
- Generic: 1280x720
- Wait for page load (
browser_wait_forif needed) - Capture:
browser_take_screenshot - Save to reference folder with descriptive filename
Asset Metadata
After acquiring each asset, document in your output:
path: local file pathwidth/height: image dimensionssource_type: "web_search" | "screenshot" | "user_provided"original_url: source URL (if applicable)
Cache Policy
Before fetching an asset:
- Check if the reference folder already has a matching file
- Use deterministic filenames based on source (e.g., URL slug + viewport)
- Reuse existing assets to avoid redundant fetches
Safety
- Timeout: max 30s per screenshot, skip and warn if exceeded
- Maximum screenshot dimensions: 1920x1920px
- Block
file://protocol URLs - Block localhost and private IP ranges (127.0.0.1, 10.x, 192.168.x)
Best Practices
- Prefer screenshots over web search for product/tool pages (images are often outdated)
- Save with descriptive names:
gemini-benchmark-chart.pngnotimage1.png - Normalize URLs before caching (strip tracking params)
- Document all acquired assets with metadata for downstream tools
Available operations
- Web Image Search -- Find and download images by keyword from the web
- Live Screenshot -- Capture viewport, full-page, or element screenshots of any URL
- Asset Organization -- Save and catalog assets with descriptive filenames and metadata
- Cache Check -- Detect and reuse previously fetched assets to avoid redundant downloads