← 返回 Skills 市场
109
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install iqs-web-search
功能描述
阿里云 IQS 联网搜索引擎:通过 HTTP API 调用阿里云信息查询服务,获取实时网络搜索结果。用于需要联网检索信息的场景。
使用说明 (SKILL.md)
IQS Search Skill - 阿里云联网搜索
调用阿里云信息查询服务 (IQS WebSearch) 进行实时网络搜索。适用于需要获取最新网络信息、新闻、知识等场景。
前置准备
1. 获取 API Key
前往 阿里云控制台 创建并获取 X-API-Key。
2. 设置环境变量
export TONGXIAO_API_KEY='your-api-key-here'
建议添加到 ~/.zshrc 或 ~/.bashrc:
echo "export TONGXIAO_API_KEY='your-api-key-here'" >> ~/.zshrc
source ~/.zshrc
使用方法
CLI 直接调用
# 基础搜索
~/.openclaw/skills/iqs-search/scripts/iqs-search.sh "阿里巴巴最新财报"
# 搜索新闻
~/.openclaw/skills/iqs-search/scripts/iqs-search.sh "2026 年 AI 技术趋势"
# 搜索技术文档
~/.openclaw/skills/iqs-search/scripts/iqs-search.sh "Kubernetes 部署最佳实践"
在 Agent 中使用
当用户需要联网检索信息时,调用此 skill:
# 示例:搜索最新新闻
export TONGXIAO_API_KEY='xxx'
~/.openclaw/skills/iqs-search/scripts/iqs-search.sh "今日科技新闻"
输出格式
搜索结果以结构化格式输出:
---
标题:{网页标题}
链接:{网页 URL}
摘要:{搜索摘要}
正文:{网页主要内容}
---
标题:{网页标题}
链接:{网页 URL}
...
API 说明
端点
- 通用搜索:
https://cloud-iqs.aliyuncs.com/search/genericSearch - 统一搜索:
https://cloud-iqs.aliyuncs.com/search/unified
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 是 | 搜索查询语句 (2-100 字符) |
| engineType | string | 否 | 搜索引擎类型 (业务透传) |
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
| pageItems | array | 搜索结果列表 |
| pageItems[].title | string | 网页标题 |
| pageItems[].link | string | 网页 URL |
| pageItems[].snippet | string | 搜索摘要 |
| pageItems[].mainText | string | 网页正文内容 |
| pageItems[].publishTime | number | 发布时间 (毫秒时间戳) |
集成示例
在 Agent 平台中使用
此 skill 可集成到以下 Agent 平台:
- 阿里云百炼: 创建自定义插件,配置 HTTP 请求节点
- Dify: 使用工作流 + HTTP 请求节点
- LangChain/OpenAI: 作为 Function Call 工具
Python 调用示例
import os
import requests
def iqs_search(query: str) -> str:
"""调用阿里云 IQS 搜索"""
url = f"https://cloud-iqs.aliyuncs.com/search/genericSearch?query={query}"
headers = {"X-API-Key": os.getenv("TONGXIAO_API_KEY")}
response = requests.get(url, headers=headers, timeout=10)
response.raise_for_status()
results = response.json().get("pageItems", [])
return "\
---\
".join([
f"标题:{r.get('title', '')}\
链接:{r.get('link', '')}\
摘要:{r.get('snippet', '')}"
for r in results
])
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
TONGXIAO_API_KEY 未设置 |
缺少环境变量 | 设置 export TONGXIAO_API_KEY='xxx' |
HTTP 401 |
API Key 无效 | 检查 Key 是否正确,或前往控制台重新生成 |
HTTP 429 |
请求超限 | 降低请求频率,参考配额文档 |
HTTP 400 |
参数错误 | 检查 query 长度 (2-100 字符) |
timeout |
请求超时 | 检查网络连接,或增加 TIMEOUT 值 |
配额与限制
- QPS 限制: 参考 配额文档
- Query 长度: 2-100 字符
- 超时时间: 默认 10 秒
相关文档
MickeMIN · 技能库 · IQS Web Search
安全使用建议
This skill appears to be a straightforward Aliyun IQS search client, but there are two things to check before installing:
1) Metadata mismatch: the registry summary claims no required env vars, but the SKILL.md and script require TONGXIAO_API_KEY. Do not assume the skill works without credentials — the script will fail without the key. Ask the publisher to correct the registry metadata so you can see at-a-glance what credentials are needed.
2) Source trust: the skill owner and homepage are unknown. Review the included script (scripts/iqs-search.sh) yourself — it is short and readable — and confirm the endpoint is the official Aliyun domain (cloud-iqs.aliyuncs.com). If you proceed, create an API key with least privilege and limited scope/quotas, avoid reusing high-privilege keys, and consider using a separate key you can rotate or revoke.
If anything looks unexpected (different endpoints, extra env-vars, or hidden install steps), do not provide real credentials and ask for clarifications or a published source/homepage.
功能分析
Type: OpenClaw Skill
Name: iqs-web-search
Version: 1.0.1
The skill is a legitimate implementation of a web search tool using the Alibaba Cloud IQS (Information Query Service) API. The shell script `scripts/iqs-search.sh` correctly handles API authentication via environment variables and uses `jq` for safe URI encoding of search queries. All network communication is directed to official Alibaba Cloud endpoints (cloud-iqs.aliyuncs.com), and there is no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The skill's name/description (Aliyun IQS web search) aligns with its code and instructions: it calls cloud-iqs.aliyuncs.com, uses curl to make HTTP requests and jq to parse JSON. Required binaries (curl, jq) are appropriate for this purpose.
Instruction Scope
SKILL.md and the shell script are narrowly scoped to forming a query, sending it to the documented IQS endpoints, and formatting results. The instructions only read the declared environment variable TONGXIAO_API_KEY and do not reference unrelated files, other secrets, or external endpoints beyond Aliyun.
Install Mechanism
Install spec only suggests installing jq via brew (a standard package). No downloads from arbitrary URLs or archive extraction are present. This is low-risk and proportional to the need to parse JSON.
Credentials
The skill requires an API key (TONGXIAO_API_KEY) in SKILL.md and the script enforces it, which is appropriate. However, the registry metadata summary provided earlier stated 'Required env vars: none' and 'Primary credential: none', which contradicts the SKILL.md. This metadata mismatch is an incoherence that could trick users or cause misconfiguration. Also the skill owner is unknown and no homepage is provided — verify you trust the key recipient before supplying credentials.
Persistence & Privilege
The skill does not request persistent or elevated privileges (always:false). It doesn't modify other skills or system-wide settings. Autonomous invocation is allowed (default) which is normal; this alone is not a concern.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install iqs-web-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/iqs-web-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 修复
v1.0.0
Initial release of iqs-web-search for Aliyun IQS search engine.
- Provides real-time web search via Aliyun IQS HTTP API with structured result output.
- Requires environment variable TONGXIAO_API_KEY and utilities curl, jq.
- Offers CLI usage and Python integration examples.
- Includes error handling, quotas, and agent integration guidance.
- Chinese documentation covers setup, API endpoints, parameters, and links to official docs.
元数据
常见问题
Web Search powered by Aliyun IQS 是什么?
阿里云 IQS 联网搜索引擎:通过 HTTP API 调用阿里云信息查询服务,获取实时网络搜索结果。用于需要联网检索信息的场景。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。
如何安装 Web Search powered by Aliyun IQS?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install iqs-web-search」即可一键安装,无需额外配置。
Web Search powered by Aliyun IQS 是免费的吗?
是的,Web Search powered by Aliyun IQS 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Web Search powered by Aliyun IQS 支持哪些平台?
Web Search powered by Aliyun IQS 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Web Search powered by Aliyun IQS?
由 MickeMin(@mickemin)开发并维护,当前版本 v1.0.1。
推荐 Skills