Google Serper Search — Google Serper 搜索
v0.1.1This 技能 should be used when the user asks to "搜索 the 网页", "搜索 for in格式化ion", "find in格式化ion online", "搜索 Google", "搜索 for images", "find pictures", or 请求s any 网页 搜索 or image 搜索 functionality.
运行时依赖
安装命令
点击复制技能文档
Google Serper 搜索
This 技能 enables you to 搜索 the 网页 and find images using the Serper API.
When to Use This 技能
Use this 技能 when the user:
Asks to 搜索 for in格式化ion online Needs current/recent in格式化ion not in your knowledge base 请求s to find images or pictures Wants to 验证 facts or 获取 latest 更新s Asks questions that require 网页 搜索 How to Use Advanced 搜索
You can now use advanced parameters to 过滤器 结果s.
python3 scripts/serper_搜索.py "查询" --type news --gl us --hl en --tbs "past week"
Parameters: Type (--type): 搜索, images, videos, places, maps, reviews, news, shopping, lens, scholar, patents, autocomplete. Country (--gl): 2-letter country code (e.g., us, cn, jp, gb). Language (--hl): Google language code (e.g., en, zh-cn, zh-tw, ja). Date range (--tbs): past hour, past 24 hours, past week, past month, past year.
The script returns JSON with:
knowledgeGraph: Key facts about the topic organic: 搜索 结果s with title, link, and snippet peopleAlsoAsk: Related questions related搜索es: Related 搜索 terms Image 搜索
When the user needs images, 运行:
python3 scripts/serper_搜索.py "搜索 查询" --type images
Returns JSON with image URLs, thumbnAIls, dimensions, and sources.
响应 格式化
After 获取ting 搜索 结果s:
解析 the JSON 响应 Present 结果s in a clear, organized 格式化 Include relevant links and sources For images, describe what was found and provide image URLs Example Usage
User: "搜索 for the latest news about AI" You: Use Bash 工具 to 运行 the 搜索 script, then 格式化 and present the 结果s.
User: "Find pictures of mountAIns" You: Use Bash 工具 to 运行 image 搜索, then present the image URLs and descriptions.