文档

Alibabacloud Iqs Search

试用

基于阿里云 IQS 的实时网页搜索与正文抓取,返回结构化结果。

它能做什么

提供两个本地 Node 脚本(`search.mjs`、`readpage.mjs`),通过阿里云 IQS 完成搜索和读页。搜索支持 Generic / LiteAdvanced / Deep 三档引擎,可控制时间范围(不限 / 一天 / 一周 / 一月 / 一年)、返回内容(摘要或正文)、以及条数(1–10)。读页支持 markdown / 纯文本 / HTML 输出,可选正文抽取和反爬隐身模式,默认超时 60 秒。运行需 Node.js ≥ 18,并通过环境变量或 `~/.alibabacloud/iqs/env` 配置 ALIYUN_IQS_API_KEY。脚本明确要求通过上述命令执行,不允许回退到内置的网页工具。

什么时候用它

  • 查询最新新闻或时效性较强的事实
  • 从指定 URL 抓取并整理正文内容
  • 需要长正文或多跳推理的深度调研
  • 将搜索结果限定在最近一天/一周/一个月内

技能文档

Prerequisites

  • Node.js >= 18.0.0 (scripts use native fetch API, no external npm dependencies)

When to Use

  • User asks for current/recent information
  • User provides a URL to read
  • Need to verify facts or get real-time data
  • Research tasks requiring multiple sources

Decision Tree

Step 1: Determine Operation Type

  • If user provides a URL → Use readpage
  • If user asks a question needing web info → Use search

Step 2: For Search Operations

Follow the best practices to determine parameter values. Use default values when uncertain:

  • engineType
  • timeRange
  • contents

Step 3: For Page Reading

Follow the best practices to determine parameter values. Use default values when uncertain:

  • format
  • extractArticle
  • stealthMode

CRITICAL: Execution Method

You MUST execute the scripts via bash command (e.g., node scripts/search.mjs ... or node scripts/readpage.mjs ...). Do NOT use your built-in web_search, WebFetch, or any other internal tools as substitutes. If the script fails, retry or report the error — do NOT fall back to built-in tools.

Parameters & Best Practices

Search Parameters

ParameterTypeRequiredDefaultDescription
--querystringYes-Search query (1-500 chars)
--engineTypestringNoLiteAdvancedSearch engine type
--timeRangestringNoNoLimitTime range filter
--contentsstringNo-Type of return content
--numResultsintNo10Number of search results (1-10)

Search Best Practices

1. Query Optimization (--query)

  • Keep queries concise (< 30 chars for best results)
  • Use specific keywords, avoid stop words
  • For news: include time context in query

2. Engine Selection (--engineType)

The four engines differ significantly in latency, recall depth, content length, and cost. Pick the cheapest engine that meets the task — do NOT default to Deep; it is ~10× slower and 50× more expensive than the standard engine.

EngineAvg RTResult countsnippetmainTextAdvanced filtersMultilingualCost ratio (vs Standard)Use case
Generic~950ms~10~150 chars≤3000 charsMediumGeneral search, news/realtime, scene queries like weather (supports city/ip)
LiteAdvanced~500ms1-50~500 chars≤3000 charsGoodLite-tier 1×Default recommendation: low-latency semantic search; snippets are already rich enough
Deep~6s1-50≤500 chars≤50000 charsGood (CN/EN)Vertical 50×Complex multi-step reasoning, research reports, offline/Agent tasks needing deep browsing

Decision rules:

  • Default → LiteAdvanced: low latency + semantic search + snippet covers most Agent needs without needing extra mainText fetches.
  • Choose Generic when: the query is short and clearly informational (news, weather, simple facts), or when minimizing cost matters; also the only engine honoring city / ip for scene results (weather etc.).
  • Choose Deep ONLY when: the question is multi-hop / complex reasoning (FRAMES/BrowseComp-style), OR you need very long mainText (≤50000 characters, ~16× longer than other engines) for downstream LLM reasoning.
    • ⚠️ Avoid Deep for: real-time chat, simple lookups, high-QPS scenarios — latency (~6s) and cost (50×) are prohibitive.

3. Time Range Selection (--timeRange)

  • NoLimit: Default when uncertain - engine optimizes based on query relevance
  • OneDay: Today only
  • OneWeek: Last 7 days
  • OneMonth: Last 30 days
  • OneYear: Last 365 days

4. Content Return (--contents)

  • mainText: Return full main text content - Use when detailed information is needed, such as technical documentation, research reports, or in-depth articles
  • summary: Return concise summary only - Use when a quick overview is sufficient, or when the page content is too large and token reduction is needed

5. Result Count (--numResults)

  • Control number of results returned (default: 10, range: 1-10)

ReadPage Parameters

ParameterTypeRequiredDefaultDescription
--urlstringYes-Target page URL
--formatstringNomarkdownReturn format
--timeoutnumberNo60000Total timeout in milliseconds
--pageTimeoutnumberNo15000Page load timeout in milliseconds
--stealthnumberNo0Enable stealth mode (0 or 1)
--extractArticlebooleanNofalseExtract main article content only

ReadPage Best Practices

1. Format Selection (--format)

  • markdown: Best for articles, preserves structure (default)
  • text: Best for data extraction
  • html: When structure analysis needed

2. Article Extraction (--extractArticle)

  • Enable for: blogs, news articles
  • Disable for: product pages, directories

3. Handling Failures (--timeout, --stealth)

  • If timeout: Retry with increased --timeout value
  • If blocked: Enable --stealth 1
  • If still fails: Report to user

Command Line Usage

Search Examples

node scripts/search.mjs --query "量子计算原理" --engineType LiteAdvanced
node scripts/search.mjs --query "最新金融政策" --engineType Generic --timeRange OneWeek

Search with Results Limit

node scripts/search.mjs --query "www.aliyun.com" --engineType LiteAdvanced --numResults 3

Search with Full Content

node scripts/search.mjs --query "AI 法案" --engineType LiteAdvanced --contents mainText

Search with Summary Only

node scripts/search.mjs --query "人工智能行业年度报告" --engineType LiteAdvanced --contents summary

Deep Research Search (complex multi-hop / long mainText)

# Returns up to 50000-char mainText per result; latency ~6s. Default timeout auto-bumps to 60s for Deep.
node scripts/search.mjs --query "对比 GPT-5 与 Claude Opus 4.7 的代码能力差异" --engineType Deep --numResults 5 --contents mainText

ReadPage Examples

Page Reading with Markdown Format

node scripts/readpage.mjs --url "https://example.com/article" --format markdown --extractArticle true

Page Reading with Plain Text Format

node scripts/readpage.mjs --url "https://example.com/article" --format text --timeout 60000

Page Reading with Stealth Mode

node scripts/readpage.mjs --url "https://example.com/article" --format markdown --stealth 1 --extractArticle true

Output Verification

After executing any search.mjs or readpage.mjs command:

  1. Check the exit code: If non-zero, the command failed — do not claim success.
  2. Verify output exists: If you saved results to a file, run ls -la and head -20 to confirm the file exists and contains valid data.
  3. Never fabricate results: If the command failed or returned an error, report the failure honestly. Do not generate content from your own knowledge and present it as search results.

Error Handling

ALIYUN_IQS_API_KEY Configuration Error

If the script returns an error about missing API key:

  1. STOP the current task immediately. Do NOT fall back to built-in tools (WebFetch, web_search, curl, etc.) as substitutes.

  2. Report the error to the user and ask the user to configure the API key:

  3. Retry the task with following instruction: Method 1: Environment Variable

export ALIYUN_IQS_API_KEY="your-api-key"

Method 2: Configuration File Create or edit ~/.alibabacloud/iqs/env:

ALIYUN_IQS_API_KEY=your-api-key

相关技能

DeepSeek's latest official web search tool, now built right into the server — powered by DeepSeek's own powerful reasoning engine. Crush your knowledge cutoff: ask about breaking news, live events, or anything happening right now, and DeepSeek's sharp understanding turns raw web results into a crisp, synthesized answer backed by real source URLs. No link dumps, no noise — just DeepSeek's intelligence doing the heavy lifting. Fresh, fast, and authoritative. Not for structured result lists.

2 星标

实时联网搜索、读 URL、看新闻、发现站点链接、查 GitHub/HN 热门,全部走 Search1API。

21 次安装

Alibaba Cloud cleversee CLI skill. web-search is a general-purpose, AI/agent-oriented internet search providing high-quality, low-latency neural knowledge re...

Search the live web through Moonshot's builtin $web_search tool and return a concise answer. Prefer this skill for OpenClaw live web search instead of callin...

22 次安装

Use when you need fresh web results through Volcengine ARK Responses API, especially for today's news, recent updates, fact checks, topic monitoring, or Chin...

25 次安装

Web search and research skill. Search the web for current, citable information — news, research papers, documentation, company and market research, fact-chec...

3 次安装