🤖 AI AGENT TEST INTERFACE

Automated testing and verification for AI agents

📋 Quick Examples

🎯 Test Configuration

📤 Output

// Ready. Select a scenario and click "Run Test" or use Quick Examples above. // Output will be formatted for easy parsing by AI agents. // All responses are in JSON format with clear success/failure indicators.

💻 Example API Calls

# SEO Extraction curl "https://your-worker.dev/render/seo?url=https://example.com" | jq
# Screenshot with mobile viewport curl "https://your-worker.dev/render/screenshot?url=https://example.com&mobile=true" -o screenshot.png
# Agent check for deployment verification curl "https://your-worker.dev/render/agent-check?url=https://your-app.com" | jq '.success, .errors'

📖 Agent Workflow Guide

For AI Agents:

  1. Use /render/agent-check after deploying code to verify it works
  2. Check the success field in the response (true/false)
  3. Review errors[] array for any issues found
  4. Inspect checks{} object for specific test results
  5. Use domSnapshot to verify page structure
  6. Monitor consoleLogs[] for JavaScript errors
  7. Check performance for timing metrics

Response Format:

{
  "success": boolean,
  "errors": string[],
  "checks": {
    "pageLoaded": boolean,
    "noAuthError": boolean,
    "noServerError": boolean,
    "noHydrationError": boolean,
    "noConsoleErrors": boolean
  },
  "domSnapshot": { ... },
  "performance": { ... }
}