Agent Skills
› fastclaw-ai/fastclaw
› web-search
web-search
GitHub提供网页搜索与内容抓取能力,支持通过专用工具或Python脚本获取页面信息。适用于用户查询资料、查找特定信息或访问指定URL的场景,并包含内容摘要与合规指引。
Trigger Scenarios
用户要求搜索网络信息
用户需要查找特定内容
用户请求获取指定URL的页面内容
Install
npx skills add fastclaw-ai/fastclaw --skill web-search -g -y
SKILL.md
Frontmatter
{
"name": "web-search",
"metadata": {
"fastclaw": {
"always": false
}
},
"description": "Search the web and fetch web pages. Use when the user asks to search for information, look something up, or fetch a URL."
}
Web Search Skill
Search the web and fetch pages using the available tools.
Using web_fetch Tool
If the web_fetch tool is available, use it to fetch and read web pages:
web_fetch(url="https://example.com")
Using exec with Python (fallback)
If web_fetch is not available, use Python with requests:
import subprocess
subprocess.check_call(["pip", "install", "-q", "requests", "beautifulsoup4"])
import requests
from bs4 import BeautifulSoup
# Fetch a page
resp = requests.get("https://example.com", timeout=10)
soup = BeautifulSoup(resp.text, 'html.parser')
# Extract text content
text = soup.get_text(separator='\n', strip=True)
print(text[:2000]) # First 2000 chars
Guidelines
- Prefer the
web_fetchtool if available — it's faster and cleaner - When using Python, always install packages first
- Limit output to relevant content — don't dump entire pages
- Summarize long content for the user
- Respect robots.txt and rate limits
Version History
- beee30c Current 2026-07-25 08:17


