{"tools":[{"name":"create_scraper","description":"Create a new scraper/collector from a URL and natural-language description. Uses Bright Data's AI Flow to auto-generate the extraction schema and code. Returns the collector_id for subsequent operations.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Human-readable name for the scraper"},"url":{"type":"string","description":"Target URL to scrape"},"description":{"type":"string","description":"Natural-language description of what data to extract"},"schema_fields":{"type":"array","items":{"type":"string"},"description":"List of required field names for health checking"}},"required":["name","url","description","schema_fields"]}},{"name":"run_collector","description":"Trigger a collector to run a scrape and return the results. This is a synchronous operation that waits for the scrape to complete.","inputSchema":{"type":"object","properties":{"collector_id":{"type":"string","description":"The collector ID to run"}},"required":["collector_id"]}},{"name":"health_check","description":"Run a collector and perform a full health check on its output. Returns the health status (healthy/degraded/broken) with detailed diagnostics including null fields, row-count anomalies, and schema drift.","inputSchema":{"type":"object","properties":{"collector_id":{"type":"string","description":"The collector ID to check"}},"required":["collector_id"]}},{"name":"self_heal","description":"Execute the full autonomous self-healing loop for a collector. Detects breakage → triggers AI self-heal → auto-approves the proposed diff via resume_automation_job → re-scrapes → verifies. Escalates to full regeneration if healing fails after retries. THIS IS THE KEY INNOVATION: the auto-approval step that the official Bright Data demo couldn't perform.","inputSchema":{"type":"object","properties":{"collector_id":{"type":"string","description":"The collector ID to heal"},"heal_prompt":{"type":"string","description":"Optional: custom heal prompt. If not provided, auto-generated from health report."},"max_retries":{"type":"integer","description":"Max heal attempts before escalating to regeneration (default: 2)","default":2}},"required":["collector_id"]}},{"name":"verify","description":"Re-run a previously healed collector and verify that its health has been restored. Returns the health report comparing before/after states.","inputSchema":{"type":"object","properties":{"collector_id":{"type":"string","description":"The collector ID to verify"}},"required":["collector_id"]}}],"count":5}