SKILL.md
Google Serper Search
This skill enables you to search the web and find images using the Serper API.
When to Use This Skill
Use this skill when the user:
- Asks to search for information online
- Needs current/recent information not in your knowledge base
- Requests to find images or pictures
- Wants to verify facts or get latest updates
- Asks questions that require web search
How to Use
Web Search
When the user needs web search, first cd into the skill directory, then run:
SERPER_API_KEY=$(moltbot config get google.serper_api_key) python3 scripts/serper_search.py "search query" web
Alternatively, if the key is already in your environment, just run:
python3 scripts/serper_search.py "search query" web
The script returns JSON with:
knowledgeGraph: Key facts about the topicorganic: Search results with title, link, and snippetpeopleAlsoAsk: Related questionsrelatedSearches: Related search terms
Image Search
When the user needs images, first cd into the skill directory, then run:
SERPER_API_KEY=$(moltbot config get google.serper_api_key) python3 scripts/serper_search.py "search query" images
Returns JSON with image URLs, thumbnails, dimensions, and sources.
Response Format
After getting search results:
- Parse the JSON response
- Present results in a clear, organized format
- Include relevant links and sources
- For images, describe what was found and provide image URLs
Example Usage
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.