← 返回
未分类 中文

Browser Gemini Search

Search the web using Google Gemini via OpenClaw-controlled Chrome with remote debugging enabled and an approved user profile.
使用 OpenClaw 控制的 Chrome(启用了远程调试且使用已批准用户配置文件)进行 Google Gemini 搜索
dream007007s
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 343
下载
💾 0
安装
1
版本
#latest

概述

Browser Gemini Search

Use OpenClaw's browser tool to control the user's Chrome and search Gemini.

Workflow

  1. Ensure browser is connected
    • Run browser(action="start", profile="user", target="host")
    • If attachOnly error or timeout: Chrome is not running with debugging port
    • Ask user to run: & "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
    • Then retry connection
  1. Find or open Gemini tab
    • Run browser(action="tabs", profile="user", target="host") to list open tabs
    • Look for existing Gemini tab (URL contains gemini.google.com)
    • If found: browser(action="focus", targetId="", profile="user", target="host")
    • If not found: open new tab via browser(action="navigate", url="https://gemini.google.com", target="host")
  1. Wait for page load
    • Run browser(action="snapshot", profile="user", target="host") to verify page is ready
    • Look for the input textbox (usually textbox with placeholder like "Ask Gemini" or "输入双子座的提示")
  1. Type the search query
    • Use browser(action="act", kind="type", ref="", text="", profile="user", target="host")
    • Then browser(action="act", kind="click", ref="", profile="user", target="host") to send
  1. Read Gemini's response
    • Wait 5-10 seconds for response to generate
    • Run browser(action="snapshot", profile="user", target="host") to read the answer
    • Present the answer to the user

Quick reference

# Step 1: connect
browser(action="start", profile="user", target="host")

# Step 2: find tab or navigate
browser(action="tabs", profile="user", target="host")
browser(action="focus", targetId="11", profile="user", target="host")  # if found
browser(action="navigate", url="https://gemini.google.com", target="host")  # if not found

# Step 3 & 4: type and send
browser(action="act", kind="type", ref="1_1236", text="search query here", profile="user", target="host")
browser(action="act", kind="click", ref="2_2", profile="user", target="host")  # send button

# Step 5: read response
browser(action="snapshot", profile="user", target="host")

Common issues

  • "Chrome MCP existing-session attach timed out": Chrome debugging port not enabled. User must restart Chrome with --remote-debugging-port=9222.
  • SSRF blocked URL: The Gemini domain must be in browser.ssrfPolicy.hostnameAllowlist in openclaw.json. Add if missing: *.google.com
  • Tab focus fails: Use correct targetId from tabs output
  • Input ref changes: Re-run snapshot to get fresh refs after page navigation

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 19:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,514
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,379 📥 320,526
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,082 📥 810,928