Loading...
Loading...
Fetch and read web pages, APIs, and online content. Use when users share URLs or ask about web content.
npx skill4agent add naohainezha/skill web-fetch# 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 -500curl -s "https://api.example.com/data" | jq '.'# 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 to specific path
curl -sL -o /tmp/file.pdf "URL"
# Download with original filename
curl -sLOJ "URL"# Just get HTTP status code
curl -sL -o /dev/null -w "%{http_code}" "URL"
# Get headers only
curl -sI "URL"-sLhead -Ngrepsedjq-A