Gemini Web Search
/install gemini-web-search
Gemini Web Search
Use Gemini CLI to search the web and produce a concise, sourced answer.
Quick workflow
- Formulate a tight query
- Include: entity + ticker/name + date/time window + what you need (%, $, cause, quotes, links)
- Example:
PayPal (PYPL) fell Feb 4 2026: % change, $ change, main catalyst(s), 3 sources
- Run Gemini CLI with a TTY and long timeout Gemini CLI can hang or be slow without a pseudo-TTY.
Preferred (OpenClaw tool call):
- Use
functions.execwithpty: true - Use
timeout300–600s (longer for heavy searches) - Use
yieldMs~10000 thenprocess.polluntil completion
Command template:
~/.npm-global/bin/gemini -p "\x3Cprompt>"
If pty:true still behaves poorly, use a pseudo-tty wrapper:
script -q -c "~/.npm-global/bin/gemini -p \"\x3Cprompt>\"" /dev/null
- Extract the answer in a structured way Return:
- The key numeric facts (e.g., % move, $ move, close/intraday)
- 2–4 bullets of the main catalyst(s)
- Links (always)
- Quality control (mandatory)
- Prefer: company IR/SEC filing, Reuters, Bloomberg, WSJ/FT, CNBC, reputable outlets.
- Avoid relying on low-quality finance blogs/SEO sites.
- If sources conflict or look unreliable: say so and ask user for a screenshot/link, or re-run with a stricter prompt.
Prompts that work well
-
Fast triage:
Search the web: \x3Ctopic>. Give 3 bullets + 2 reputable links. -
Market move:
Search the web: Why did \x3CTICKER> move today (\x3Cdate>)? Provide exact % and $ move (close + intraday if available) and the main catalyst(s). Cite sources with links. -
Force better sources:
Search the web and prioritize Reuters/company IR/SEC filing. If you cannot find them, say so. Topic: \x3C...>. Provide links.
Failure modes & fixes
-
Gemini prints “I will search…” then stalls
- Wait longer (it can be slow).
- Ensure TTY: run with
pty:trueorscript -q -c ... /dev/null.
-
Output has suspicious claims (e.g., odd CEO news)
- Re-run with: “use Reuters/company IR/SEC filing only; otherwise say unknown”.
- Cross-check with at least 2 independent reputable sources.
-
Need numbers but sources don’t show them
- Ask user for the quote/screenshot from their market data app and reconcile.
Local setup notes
- Gemini CLI binary:
~/.npm-global/bin/gemini - Auth: already completed by Jiajie (should work without re-login)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gemini-web-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/gemini-web-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gemini Web Search 是什么?
Use Gemini CLI (@google/gemini-cli) to do web search / fact-finding and return a sourced summary. Use when the user asks “why did X happen today”, “what’s the latest news”, “search the web”, “find sources/links”, or any task requiring up-to-date info. Prefer this over other search tools when Gemini is available but slow; run it with a TTY, wait longer, and verify source quality. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3013 次。
如何安装 Gemini Web Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gemini-web-search」即可一键安装,无需额外配置。
Gemini Web Search 是免费的吗?
是的,Gemini Web Search 完全免费(开源免费),可自由下载、安装和使用。
Gemini Web Search 支持哪些平台?
Gemini Web Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gemini Web Search?
由 fengjiajie(@fengjiajie)开发并维护,当前版本 v1.0.0。