Openclaw Grok Search
Run cross-platform web research and return structured JSON output with content and sources.
This skill is project-local and should run directly from the downloaded project directory.
When to Use
Use this skill before answering when any of these apply:
- 1. The user asks for latest/current/today/recent information.
- The answer depends on versions, releases, changelogs, or compatibility.
- The task needs official docs, API references, or source URLs.
- The user reports an error and root-cause analysis needs web evidence.
- You are uncertain and need external confirmation before final output.
Quick Start
- 1. Write config interactively (first run only).
CODEBLOCK0
- 2. Run a query.
CODEBLOCK1
Config Priority
- 1. CLI args such as
--base-url and INLINECODE3 - Environment vars INLINECODE4
- Config files
Default config lookup order:
- 1. INLINECODE5
- INLINECODE6
Cross-Platform Rules
- 1. Prefer
python ... commands, do not require PowerShell-only syntax. - Keep config in the project folder, do not install or copy into
~/.codex. - Support
GROK_CONFIG_PATH only when you explicitly want a custom path.
Output Shape
Always print JSON with:
- 1. INLINECODE10
- INLINECODE11
- INLINECODE12
- INLINECODE13
Anti-Patterns
| Prohibited | Correct |
|---|
| No source citation | Include INLINECODE14 |
| Give up after one failure |
Retry at least once |
| Use built-in WebSearch/WebFetch | Use GrokSearch tools/CLI |
技能名称: openclaw-grok-search
详细描述:
Openclaw Grok 搜索
运行跨平台网络研究,并返回包含 content 和 sources 的结构化 JSON 输出。
此技能为项目本地技能,应直接从下载的项目目录中运行。
使用时机
在以下任一情况发生时,请在回答前使用此技能:
- 1. 用户询问最新/当前/今日/近期信息。
- 答案依赖于版本、发布、变更日志或兼容性。
- 任务需要官方文档、API 参考或来源 URL。
- 用户报告错误,且根因分析需要网络证据。
- 你感到不确定,需要在最终输出前获取外部确认。
快速开始
- 1. 交互式编写配置(仅首次运行)。
bash
python scripts/configure.py
- 2. 运行查询。
bash
python scripts/grok_search.py --query Python 最近有什么变化?
配置优先级
- 1. CLI 参数,如 --base-url 和 --api-key
- 环境变量 GROK_*
- 配置文件
默认配置查找顺序:
- 1. config.json
- config.local.json
跨平台规则
- 1. 优先使用 python ... 命令,不要求仅限 PowerShell 语法。
- 将配置保留在项目文件夹中,不要安装或复制到 ~/.codex。
- 仅当明确需要自定义路径时,才支持 GROKCONFIGPATH。
输出格式
始终打印包含以下内容的 JSON:
- 1. ok
- content
- sources
- raw
反模式
至少重试一次 |
| 使用内置的 WebSearch/WebFetch | 使用 GrokSearch 工具/CLI |