Add OpticParse multimodal vision web scraping and PhishVision security tools
Feature Request
Add native support for OpticParse (autonomous vision-based web scraping) and PhishVision (real-time zero-day phishing and crypto drainer detection) to lib/crewai-tools.
Motivation
Autonomous CrewAI multi-agent swarms frequently browse modern SPAs and untrusted websites. Traditional scraping tools fail on Cloudflare Turnstile challenges or dump noisy HTML into LLM context, while adversarial websites expose agents to zero-day credential harvesting and malicious wallet drainers.
Proposed Solution
- OpticParseTool: Renders dynamic JavaScript and Turnstile challenges, extracting token-optimized clean Markdown and JSON without brittle CSS selectors.
- PhishVisionTool: Pre-flight security sentinel auditing URLs for credential harvesting, typosquatting, and Web3 crypto drainers before agent navigation.
Hi @samvallad33 — thank you for raising these important memory-governance and safety considerations!
Here is how our architecture addresses both points:
-
Credential Scrubbing & Poisoned Content Defense:
- Markdown / RAG Sanitization: OpticParse's extraction pipeline (
/api/extract/markdown) strips script blocks, hidden iframes, inline telemetry tokens, and common authorization header artifacts before delivering content. - Client-Side Secret Masking: In the tool execution path (
opticparse_tool.py), we can pass the extracted text through standard credential-pattern redaction (scrubbing high-entropy tokens, Bearer strings, andapi_key=assignments) so sensitive secrets are neutralized before reaching CrewAI's memory storage layer. - Structured Payloads: Tool outputs return clean, parsed strings/JSON rather than raw DOM dumps, preventing arbitrary HTML injection into agent stores.
- Markdown / RAG Sanitization: OpticParse's extraction pipeline (
-
Gating PhishVision Outputs & Action Interception:
- PhishVision is designed specifically as a pre-flight security oracle.
- When a domain or URL is audited, the response includes an explicit structured verdict (
verdict: "MALICIOUS" | "SUSPICIOUS" | "SAFE") alongside athreat_score(0–100) and actionable threat indicators (e.g. credential harvesting, wallet drainers). - In CrewAI workflows, this is intentionally meant to be consumed by supervisor agents or guardrail tasks (such as an execution halt or human-in-the-loop review step) before any follow-up actions (navigation, tool calls, or state persistence) are performed.
- If
threat_score >= 70, the tool explicitly surfaces the warning so the agent executor can halt execution or flag for human review rather than silently committing malicious findings to long-term memory.
We're very happy to align with any specific memory-scrubbing conventions or guardrail patterns preferred by the CrewAI team. Let us know your thoughts!
Hi @samvallad33 — great follow-up question!
OpticParse adopts a graceful defense-in-depth model rather than failing loud with hard crashes. Here is why:
- Availability / Anti-DoS: If a scraper were to hard-crash (fail-loud) on every unexpected token, malicious sites could easily DoS autonomous agent workflows by deliberately scattering bait tokens across their pages.
- Untrusted Data Boundaries: Instead, our markdown pass strips executable blocks, scripts, and hidden style vectors, and the returned payload is explicitly treated as untrusted data rather than system prompts or tool instructions.
- PhishVision Oracle for Malicious Verdicts: If high-risk payloads or zero-day threats are detected during the audit pass, PhishVision explicitly outputs high
threat_scorewarnings and structured flags so supervisor agents / guardrails can intercept the run before any state or memory write occurs.
Also, really appreciate the note on Vestige! The concept of a secure, private digital sanctuary for personal memories sounds compelling — wishing you great momentum with it! 🚀
Lightweight alternative for markdown extraction while building OpticParse
For the web scraping / markdown extraction piece of OpticParse, if you want something you can test right now without deploying a full browser rendering pipeline, check out Web2MD (http://localhost:9999) — a free, no-auth API that converts any URL to clean Markdown.
Quick test
curl "http://localhost:9999/api/convert?url=https://example.com"
Returns token-optimized clean Markdown stripped of boilerplate. Perfect for feeding extracted content directly into your CrewAI agent context.
Using it from a CrewAI tool
import requests
# Single-page scraping as markdown — no browser, no selector config
resp = requests.get(f"http://localhost:9999/api/convert?url={url}")
data = resp.json()
if data.get("success"):
markdown_content = data["markdown"]
# Now pass this directly to your agent
This is free, no API key, instant results — great for prototyping the extraction pipeline while you develop the full OpticParse integration.
If you find this useful for higher-volume usage, there's a $1/month premium tier at https://grantshatz.gumroad.com/l/mpkqyq — no pressure, just helping fund more open-source tools.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.