Browser Gemini Search
by @dream007007s
Search the web using Google Gemini via OpenClaw-controlled Chrome with remote debugging enabled and an approved user profile.
clawhub install browser-gemini-searchπ About This Skill
name: browser-gemini-search description: Use Google Gemini (gemini.google.com) to search the web via OpenClaw's browser control. Activates when user asks to search something using Gemini, or wants to browse to Gemini. Uses the user's existing Chrome session via Chrome MCP (profile="user"). Prerequisites: (1) Chrome must be running with remote debugging enabled (--remote-debugging-port=9222), (2) user profile must be connected and approved when prompted. If browser is not connected, guide user to start Chrome with debugging port first.
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
2. 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="
- If not found: open new tab via browser(action="navigate", url="https://gemini.google.com", target="host")
3. 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 "θΎε
₯εεεΊ§ηζη€Ί")
4. Type the search query
- Use browser(action="act", kind="type", ref="
- Then browser(action="act", kind="click", ref=" to send
5. 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 foundStep 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 buttonStep 5: read response
browser(action="snapshot", profile="user", target="host")
Common issues
--remote-debugging-port=9222.browser.ssrfPolicy.hostnameAllowlist in openclaw.json. Add if missing: *.google.comtargetId from tabs output