Install
openclaw skills install iflow-searchWeb search, image search, and webpage content fetch via the iFlow Search API. / 通过 iFlow Search API 提供网页搜索、图片搜索和网页内容抓取能力。
openclaw skills install iflow-searchiFlow Search is a community skill that exposes the iFlow Search API as three callable scripts inside an agent:
web search → choose links → fetch each to build a small research dossierbash and curl available in PATHIFLOW_API_KEY exported in the shell that launches the agentecho 'export IFLOW_API_KEY="YOUR_IFLOW_API_KEY"' >> ~/.zshrc
source ~/.zshrc
Do not pass the key as a CLI argument. Do not commit the key to any file.
| Script | Purpose | Required args |
|---|---|---|
scripts/web_search.sh <keywords> [num] | Web search | keywords |
scripts/image_search.sh <keywords> [num] | Image search | keywords |
scripts/web_fetch.sh <url> | Fetch + clean a URL | url |
See the Chinese section below for full parameter docs, examples, and error codes.
心流搜索 Skill 是一个联网搜索技能,基于心流搜索 API,提供三大核心能力:
搜索网络并返回结构化的搜索结果。
调用脚本:scripts/web_search.sh
参数:
keywords(必填):搜索关键词num(可选,默认 10):返回结果数量返回结果:每条结果包含 title(标题)、snippet(摘要)、link(链接)
使用示例:
# 搜索 Python 异步编程教程
bash scripts/web_search.sh "Python 异步编程教程" 10
搜索图片并返回图片链接。
调用脚本:scripts/image_search.sh
参数:
keywords(必填):搜索关键词num(可选,默认 10):返回结果数量返回结果:每条结果包含 url(图片 URL)、refUrl(来源页面)、title(图片标题,可能为空)
使用示例:
# 搜索风景图片
bash scripts/image_search.sh "风景壁纸" 5
将 URL 转换为大模型友好的文本内容。
调用脚本:scripts/web_fetch.sh
参数:
url(必填):目标网页 URL返回结果:包含 title(标题)、content(正文内容)、url(实际 URL)、fromCache(是否命中缓存)
使用示例:
# 抓取网页内容
bash scripts/web_fetch.sh "https://example.com/article"
使用前需设置 IFLOW_API_KEY 环境变量。在调用任何搜索能力之前,必须先检查该环境变量是否已设置:
echo "$IFLOW_API_KEY"
如果为空,提示用户:
搜索功能需要设置 IFLOW_API_KEY 环境变量才能使用。请按以下步骤操作:
- 访问 https://platform.iflow.cn 注册并获取 API Key
- 将 API Key 写入 shell 配置文件以持久生效:
echo 'export IFLOW_API_KEY=your_api_key' >> ~/.zshrc- 在当前终端执行
source ~/.zshrc使其立即生效(否则仅在新打开的终端窗口中才会生效)
设置完成后再继续执行搜索操作。
用户:「帮我搜一下最近的 AI 新闻」
bash scripts/web_search.sh "AI 人工智能 最新新闻" 10
用户:「帮我找一些猫咪图片」
bash scripts/image_search.sh "猫咪 可爱" 5
用户:「帮我看看这个网页的内容:https://example.com」
bash scripts/web_fetch.sh "https://example.com"
用户:「帮我搜一下 Python 异步编程,找一篇好的教程详细看看」
bash scripts/web_search.sh "Python 异步编程 教程" 10
bash scripts/web_fetch.sh "从搜索结果中获取的链接"
webSearch 找到相关网页,再用 webFetch 获取详细内容num 参数,避免请求过多无用结果PARAM_INVALID:检查请求参数是否正确INVALID_APIKEY:检查 API Key 是否有效USER_RATE_LIMIT:降低请求频率,限制为 1000 RPMSYSTEM_ERROR:服务端异常,稍后重试