Install
openclaw skills install doubao-image-genClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Use Zhipu (智谱) web search API for searching the internet. Use when user asks for web search, latest news, or needs current information.
openclaw skills install doubao-image-genUse Zhipu's web search API to search the internet.
This skill requires DOUBAO_API_KEY environment variable to be set before use.
# Set API key as environment variable
export DOUBAO_API_KEY="your_api_key"
Get your API key from: https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys
export DOUBAO_API_KEY="your_key"
curl -s -X POST "https://open.bigmodel.cn/api/paas/v4/chat/completions" \
-H "Authorization: Bearer $DOUBAO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4-flash",
"messages": [{"role": "user", "content": "搜索: YOUR_QUERY"}],
"tools": [{"type": "web_search", "web_search": {"search_query": "YOUR_QUERY"}}]
}' | jq -r '.choices[0].message.content'
export DOUBAO_API_KEY="your_key"
./search.sh "搜索内容"
ps aux
https://open.bigmodel.cn (official Zhipu API)| Feature | Implementation |
|---|---|
| JSON escaping | jq --arg prevents injection |
| Input validation | Query length ≤500 chars |
| TLS | Force TLS 1.2+ |
| Error handling | Generic messages, no leaks |
| Timeout | 30 second curl timeout |
Official: https://open.bigmodel.cn/api/paas/v4/chat/completions