web-fetch
SKILL.md
Web Fetch Skill
Fetch web content. Prefer the built-in WebFetch tool — it uses a real browser engine for JavaScript-rendered pages with high success rate. Fall back to curl only if WebFetch is unavailable.
Fetch a Web Page (HTML → Text)
# Get page content, strip HTML tags, first 500 lines
curl -sL "URL" | sed 's/<[^>]*>//g' | sed '/^$/d' | head -500
# Or use lynx for better text extraction (if installed)
lynx -dump -nolist "URL" | head -500
# Or use w3m
w3m -dump "URL" | head -500
Fetch JSON API
curl -s "https://api.example.com/data" | jq '.'
Fetch with Headers
# With custom headers
curl -s -H "Authorization: Bearer TOKEN" -H "Accept: application/json" "URL"
# With user agent
curl -sL -A "Mozilla/5.0" "URL"
Download Files
# Download to specific path
curl -sL -o /tmp/file.pdf "URL"
# Download with original filename
curl -sLOJ "URL"
Check URL Status
# Just get HTTP status code
curl -sL -o /dev/null -w "%{http_code}" "URL"
# Get headers only
curl -sI "URL"
Tips
- Use
-sLfor silent mode + follow redirects - Pipe to
head -Nto limit output and avoid context overflow - For large pages, extract just what you need with
greporsed - Use
jqfor JSON responses - Some sites block curl — add a browser User-Agent with
-A
Weekly Installs
2
Repository
naohainezha/skillFirst Seen
Feb 15, 2026
Security Audits
Installed on
openclaw2
claude-code2
replit2
codex2
opencode2
mcpjam1