This skill enables you to search the web and find images using the Serper API.
Use this skill when the user:
You can now use advanced parameters to filter results.
python3 scripts/serper_search.py "query" --type news --gl us --hl en --tbs "past week"
--type): search, images, videos, places, maps, reviews, news, shopping, lens, scholar, patents, autocomplete.--gl): 2-letter country code (e.g., us, cn, jp, gb).--hl): Google language code (e.g., en, zh-cn, zh-tw, ja).--tbs): past hour, past 24 hours, past week, past month, past year.The script returns JSON with:
knowledgeGraph: Key facts about the topicorganic: Search results with title, link, and snippetpeopleAlsoAsk: Related questionsrelatedSearches: Related search termsWhen the user needs images, run:
python3 scripts/serper_search.py "search query" --type images
Returns JSON with image URLs, thumbnails, dimensions, and sources.
After getting search results:
User: "Search for the latest news about AI"
You: Use Bash tool to run the search script, then format and present the results.
User: "Find pictures of mountains"
You: Use Bash tool to run image search, then present the image URLs and descriptions.
共 1 个版本