Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
AI Screenshot Capture
Capture high-resolution screenshots with full-page support, element highlighting, and auto-scroll.
CLI Quickstart
praisonai recipe run ai-screenshot-capture \
--input '{"url": "https://example.com", "full_page": true}' \
--json
Use in Your App (SDK)
import sys
sys.path.insert(0, 'agent_recipes/templates/ai-screenshot-capture')
from tools import capture_screenshot, capture_full_page, highlight_and_capture
# Basic screenshot
result = capture_screenshot("https://example.com", output_path="screenshot.png")
# Full page capture
full = capture_full_page("https://example.com", output_path="full.png")
# Highlight element and capture
highlighted = highlight_and_capture(
"https://example.com",
selector=".main-content",
output_path="highlighted.png"
)
{
"type": "object",
"properties": {
"url": {"type": "string"},
"full_page": {"type": "boolean", "default": false},
"selector": {"type": "string"},
"viewport": {
"type": "object",
"properties": {
"width": {"type": "integer"},
"height": {"type": "integer"}
}
}
}
}
Output Schema
{
"path": "/output/screenshot.png",
"width": 1920,
"height": 1080,
"full_page": true
}
Features
| Feature | Description |
|---|
| Full Page | Capture entire scrollable page |
| Highlighting | Highlight specific elements |
| Auto-scroll | Scroll through dynamic content |
| High-res | 2x resolution support |
Dependencies
pip install playwright
playwright install chromium