📦 Screenshots for AI agents via x402 — AI代理网页截图
v1.0.1通过 MCP Streamable HTTP 端点提供远程浏览器截图和视觉识别能力,采用 x402 USDC 微支付机制。该部署的付费工具需要支持 x402 的 MCP 客户端和链上 USDC 签名钱包。
详细分析 ▾
运行时依赖
版本
**已明确付费工具的安全、隐私和使用要求。** - 添加了关于隐私的明确指导:仅用于公开、非敏感的 URL,因为所有页面数据和提示词都在主机外处理。 - 声明了需要支持 x402 的 MCP 客户端和已充值钱包的要求:付费端点需要通过代理环境进行 USDC 支付签名,绝不在用户提示词中签名。 - 警告用户不要在提示词中存储密钥或密钥——请按照文档使用安全的环境变量。 - 明确免费发现和健康检查不需要钱包或签名访问。 - 更新了描述和入职步骤,以强调安全性和支付前提条件。
安装命令
点击复制技能文档
This skill enables AI agents to capture browser screenshots via the Model Context Protocol (MCP), with payments handled through x402's USDC micropayment standard.
Prerequisites
- An MCP client that supports x402 payments (e.g., the desktop app or custom implementation)
- A wallet with USDC on the appropriate network (e.g., Base mainnet)
- Environment variables for authentication (see Configuration)
Tools
analyze_screenshot
Analyze a screenshot using vision capabilities. This tool uses AI to understand and describe the content of a previously captured screenshot.
Parameters:
prompt(required): The analysis question or instructionscreenshot_id(required): The ID returned from a previous screenshot capture
capture_screenshot
Capture a screenshot of a specified URL. The screenshot is rendered in a browser environment and returned as an image.
Parameters:
url(required): The URL to capturewidth(optional): Viewport width (default: 1280)height(optional): Viewport height (default: 720)full_page(optional): Capture full page vs viewport only (default: false)
health
Check the service health and pricing information. This is a free endpoint that doesn't require payment.
Parameters: None
Configuration
Set the following environment variables:
# Your private key for signing USDC payments (never share or expose)
AGENT_PRIVATE_KEY=your_private_key_here
X402_PRIVATE_KEY=your_private_key_here
Usage Example
# Check health and pricing first health_result = await health()# Capture a screenshot screenshot = await capture_screenshot( url="https://example.com", width=1280, height=720 )
# Analyze the screenshot analysis = await analyze_screenshot( prompt="What is this page about?", screenshot_id=screenshot.screenshot_id )
Security Considerations
- Never submit private, authenticated, or sensitive URLs
- All screenshots are processed off-host by the operator
- Payment signing happens in your agent's environment, not in prompts
- Keep your private keys secure and never expose them in code or prompts
Pricing
See the health endpoint for current pricing. Payments are made in USDC on the configured network.