Zai Web Search
Z.AI provides developers with a full suite of AI search tools, covering three core services: basic search (Web Search API), retrieval-augmented generation.
https://docs.z.ai/guides/tools/web-search
Latest: v1.0.0
zai-web-search 1.0.0
- Replaced extensive Markdown and config documentation with a concise SKILL.md focused on core usage.
- Removed 8 files including all previous config and README docs.
- Added a shell script for search functionality: zai-search.sh.
- Now requires a ZAI API key in the environment or key file, plus jq and curl.
- All instructions and output streamlined for quick setup and basic use.
zAI Web Search
Search the web using Z.AI (GLM) Web Search API.
When to use
- User asks to search the web, look something up, or find current information
- You need real-time data not in your training
- User explicitly asks for zAI search
How to use
Run the search script:
bash ~/.openclaw/workspace/skills/zai-web-search/zai-search.sh "search query" [count]
countis optional, default 5, max 50- Output is plain text: title, URL, summary for each result
Requirements
ZAI_API_KEYenv var or key file at~/.openclaw/.zai-keyjqandcurlinstalled
Notes
- Endpoint:
https://api.z.ai/api/coding/paas/v4/web_search - Search engine:
search-prime(zAI's enhanced search)
