← 返回
效率工具 Key 中文

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,...
使用DashScope Qwen搜索网络实时信息。当用户询问时事、新闻、天气、股价等内容时使用此技能。
oreo992
效率工具 clawhub v1.0.0 1 版本 99786 Key: 需要
★ 0
Stars
📥 1,865
下载
💾 19
安装
1
版本
#latest

概述

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

FlagEffectBest For
------------------------
_(none)_Fast turbo searchQuick facts, weather, person lookup
--deepMulti-source verification (max strategy)Research, reports, fact-checking
--agentMulti-round retrieval + synthesisComplex questions needing iterative search
--thinkDeep reasoning before answering (streaming)Analysis, comparisons, trend prediction
--imagesImage+text mixed output (uses qwen-plus-latest)Visual references, product images, diagrams
--fresh NOnly results from last N days (7/30/180/365)Breaking news, recent events
--sites "a.com,b.com"Restrict to specific domainsDomain-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

  1. Start with default (turbo) — handles 80% of queries instantly
  2. Escalate to --deep when turbo results are incomplete or conflicting
  3. Use --agent for questions that need multiple search angles (e.g., "compare X vs Y across dimensions")
  4. Add --think when the user needs analysis, not just raw facts
  5. Add --images when visual context matters (products, places, people, charts)

Output Format

  • Results include citation markers like [1], [2] — preserve these in your response
  • --think mode prepends ... with reasoning chain
  • --images mode may include !alt markdown 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:

  1. Check network: curl -s https://dashscope.aliyuncs.com > /dev/null && echo OK
  2. Check Python package: python3 -c "import openai; print(openai.__version__)"
  3. Check env var: DASHSCOPE_API_KEY must be set in the process environment

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 08:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,484
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,802
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 432 📥 103,753