BigModel Web Search Fallback
Use this skill when you want Zhipu search without modifying OpenClaw core.
It provides a local wrapper script with two execution modes:
- -
raw — call Zhipu Web Search API directly and get structured results - INLINECODE1 — call Zhipu chat completions with the built-in
web_search tool and get a synthesized answer
Requirements
Make sure the OpenClaw host has one of these environment variables set:
- - INLINECODE3
- INLINECODE4
- INLINECODE5
If none is present, stop and report missing auth instead of retrying blindly.
Engine selection
This skill supports four Zhipu search engines:
- -
search_std — default, lowest-cost/basic search - INLINECODE7 — stronger general search quality
- INLINECODE8 — 搜狗-backed route
- INLINECODE9 — 夸克-backed route
Default to search_std unless the user asks for:
- - better search quality
- broader retrieval coverage
- a specific upstream engine
- result comparison across engines
When the user explicitly names an engine, honor it.
Quick decision
- - Use
raw when you want structured results such as title/link/summary/media/date and you will write the final answer yourself. - Use
chat when you want GLM to search and summarize in one call. - Use
search_std first for routine lookups. - Switch to
search_pro when quality matters more than cost. - Switch to
search_pro_sogou or search_pro_quark when the user wants to test or compare engines.
Commands
Run commands from the skill directory or use absolute paths.
Raw structured search
CODEBLOCK0
Search + answer synthesis
CODEBLOCK1
Higher-quality search
CODEBLOCK2
Explicit engine comparison
CODEBLOCK3
Workflow
- 1. Decide whether the task needs
raw results or a chat-generated answer. - Pick the engine:
- default
search_std
-
search_pro for better quality
-
search_pro_sogou /
search_pro_quark for explicit engine routing or comparison
- 3. Run the wrapper script.
- If using
raw, summarize the returned results yourself and cite the best links. - If using
chat, still sanity-check the answer before sending it. - If the user asks how this relates to built-in
web_search, explain that this is a non-invasive fallback and does not replace OpenClaw core tooling.
Notes
- - The script prints JSON to stdout for easy parsing.
- Supported flags include
--domain-filter, --recency, --content-size, --count, and --engine. - Read
references/api-notes.md if you need API details, engine guidance, or more examples.
BigModel Web 搜索回退
当您希望使用智谱搜索但不修改 OpenClaw 核心时,请使用此技能。
它提供了一个本地包装脚本,具有两种执行模式:
- - raw — 直接调用智谱 Web 搜索 API 并获取结构化结果
- chat — 调用智谱聊天补全,使用内置的 web_search 工具并获取综合回答
要求
确保 OpenClaw 主机设置了以下环境变量之一:
- - ZAIAPIKEY
- ZHIPUAIAPIKEY
- BIGMODELAPIKEY
如果以上均未设置,则停止并报告缺少认证信息,而不是盲目重试。
引擎选择
此技能支持四种智谱搜索引擎:
- - searchstd — 默认,最低成本/基础搜索
- searchpro — 更强的通用搜索质量
- searchprosogou — 搜狗支持的路线
- searchproquark — 夸克支持的路线
默认使用 search_std,除非用户要求:
- - 更好的搜索质量
- 更广泛的检索覆盖范围
- 特定的上游引擎
- 跨引擎结果比较
当用户明确指定引擎时,请遵循该要求。
快速决策
- - 当您想要结构化结果(如标题/链接/摘要/媒体/日期)并自行撰写最终答案时,使用 raw。
- 当您希望 GLM 在一次调用中完成搜索和总结时,使用 chat。
- 对于常规查询,首先使用 searchstd。
- 当质量比成本更重要时,切换到 searchpro。
- 当用户想要测试或比较引擎时,切换到 searchprosogou 或 searchproquark。
命令
从技能目录运行命令,或使用绝对路径。
原始结构化搜索
bash
python scripts/zhipuwebsearch.py raw --query OpenClaw 是什么 --engine search_std --count 5 --pretty
搜索 + 回答综合
bash
python scripts/zhipuwebsearch.py chat --query 请简要说明 OpenClaw 是什么,并给出搜索来源。 --engine search_std --count 5 --pretty
更高质量的搜索
bash
python scripts/zhipuwebsearch.py raw --query 今天的 AI 新闻 --engine search_pro --count 5 --pretty
显式引擎比较
bash
python scripts/zhipuwebsearch.py raw --query OpenClaw 是什么 --engine searchprosogou --count 5 --pretty
python scripts/zhipuwebsearch.py raw --query OpenClaw 是什么 --engine searchproquark --count 5 --pretty
工作流程
- 1. 确定任务需要 raw 结果还是 chat 生成的回答。
- 选择引擎:
- 默认 search_std
- search_pro 用于更高质量
- search
prosogou / search
proquark 用于显式引擎路由或比较
- 3. 运行包装脚本。
- 如果使用 raw,自行总结返回的结果并引用最佳链接。
- 如果使用 chat,在发送前仍需对回答进行合理性检查。
- 如果用户询问这与内置 web_search 的关系,解释这是一个非侵入式回退,并不替代 OpenClaw 核心工具。
注意事项
- - 脚本将 JSON 输出到标准输出,便于解析。
- 支持的标志包括 --domain-filter、--recency、--content-size、--count 和 --engine。
- 如需 API 详情、引擎指南或更多示例,请阅读 references/api-notes.md。