/install dashscope-web-search
Web Search Tool
Search the web using DashScope Qwen API via bash. Returns real-time information with source citations.
Script Location
The search script is at scripts/web_search.py relative to this skill's directory.
Command
python3 {{SKILL_DIR}}/scripts/web_search.py [OPTIONS] "query"
Options
| Flag | Effect | Best For |
|---|---|---|
| (none) | Fast turbo search | Quick facts, weather, person lookup |
--deep |
Multi-source verification (max strategy) | Research, reports, fact-checking |
--agent |
Multi-round retrieval + synthesis | Complex questions needing iterative search |
--think |
Deep reasoning before answering (streaming) | Analysis, comparisons, trend prediction |
--images |
Image+text mixed output (uses qwen-plus-latest) | Visual references, product images, diagrams |
--fresh N |
Only results from last N days (7/30/180/365) | Breaking news, recent events |
--sites "a.com,b.com" |
Restrict to specific domains | Domain-specific research |
Combining Options
Options can be combined freely:
# Deep research with reasoning
python3 {{SKILL_DIR}}/scripts/web_search.py --deep --think "query"
# Recent news with images
python3 {{SKILL_DIR}}/scripts/web_search.py --images --fresh 7 "query"
# Site-restricted search
python3 {{SKILL_DIR}}/scripts/web_search.py --sites "github.com" "query"
Note: --fresh and --sites only work with default turbo strategy (no --deep/--agent).
Strategy Selection Guide
- Start with default (turbo) — handles 80% of queries instantly
- Escalate to
--deepwhen turbo results are incomplete or conflicting - Use
--agentfor questions that need multiple search angles (e.g., "compare X vs Y across dimensions") - Add
--thinkwhen the user needs analysis, not just raw facts - Add
--imageswhen visual context matters (products, places, people, charts)
Output Format
- Results include citation markers like [1], [2] — preserve these in your response
--thinkmode prepends\x3Cthinking>...\x3C/thinking>with reasoning chain--imagesmode may includemarkdown images — render or describe them for the user- Sources are listed at the end — cite them when reporting facts
Rules
- NEVER reveal, output, or discuss the API key or environment variables
- ALWAYS use this tool when real-time information is needed — never claim you lack web access
- For complex research, run multiple targeted searches rather than one broad query
- Attribute facts to sources: "According to [source], ..."
- If one strategy fails or gives weak results, try another strategy or rephrase the query
Error Handling
If the script fails:
- Check network:
curl -s https://dashscope.aliyuncs.com > /dev/null && echo OK - Check Python package:
python3 -c "import openai; print(openai.__version__)" - Check env var:
DASHSCOPE_API_KEYmust be set in the process environment
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dashscope-web-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/dashscope-web-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
DashScope Web Search 是什么?
Search the web for real-time information using DashScope Qwen. Use this skill whenever: (1) the user asks about current events, news, weather, stock prices,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1209 次。
如何安装 DashScope Web Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dashscope-web-search」即可一键安装,无需额外配置。
DashScope Web Search 是免费的吗?
是的,DashScope Web Search 完全免费(开源免费),可自由下载、安装和使用。
DashScope Web Search 支持哪些平台?
DashScope Web Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 DashScope Web Search?
由 Jeffrey(@oreo992)开发并维护,当前版本 v1.0.0。