grok-browserQuery Grok AI via browser automation. Use when you need to ask Grok questions, get AI responses, or use Grok's DeepSearch/Think features. Copies response tex...
Install via ClawdBot CLI:
clawdbot install EasonC13/grok-browserQuery Grok (grok.com) via Chrome browser automation and copy responses.
profile=chrome (never profile=clawd)# 1. Open Chrome with Grok
open -a "Google Chrome" "https://grok.com"
sleep 3
# 2. Attach browser relay
/Users/eason/clawd/scripts/attach-browser-relay.sh
# 3. Check tabs
browser action=tabs profile=chrome
Grok uses contenteditable, not a standard textbox. Use JavaScript evaluate:
// Type query via evaluate
browser action=act profile=chrome targetId=<id> request={
"kind": "evaluate",
"fn": "(() => { const editor = document.querySelector('[contenteditable=\"true\"]'); if(editor) { editor.focus(); editor.innerText = 'YOUR_QUERY_HERE'; return 'typed'; } return 'not found'; })()"
}
Then submit with Enter:
browser action=act profile=chrome targetId=<id> request={"kind":"press","key":"Enter"}
open -a "Google Chrome" "https://grok.com"
sleep 3
/Users/eason/clawd/scripts/attach-browser-relay.sh
browser action=tabs profile=chrome
Look for Grok tab, note the targetId.
browser action=act profile=chrome targetId=<id> request={
"kind": "evaluate",
"fn": "(() => { const e = document.querySelector('[contenteditable=\"true\"]'); if(e) { e.focus(); e.innerText = 'What is quantum computing?'; return 'ok'; } return 'fail'; })()"
}
browser action=act profile=chrome targetId=<id> request={"kind":"press","key":"Enter"}
sleep 10-20 # Grok can take 10-30 seconds
browser action=snapshot profile=chrome targetId=<id>
Look for button with "Copy" in the response area (usually last message).
browser action=act profile=chrome targetId=<id> request={"kind":"click","ref":"<copy_button_ref>"}
pbpaste
After submitting, response is complete when:
Always start fresh chats for unrelated queries to avoid context overflow:
browser action=navigate profile=chrome targetId=<id> targetUrl="https://grok.com"
Or use Cmd+J shortcut:
browser action=act profile=chrome targetId=<id> request={"kind":"press","key":"Meta+j"}
To enable DeepSearch, click the button before submitting:
# In snapshot, find DeepSearch button
browser action=act profile=chrome targetId=<id> request={"kind":"click","ref":"<deepsearch_ref>"}
# Then type and submit as normal
Re-run attach script:
/Users/eason/clawd/scripts/attach-browser-relay.sh
Check status:
browser action=status profile=chrome
Should show cdpReady: true.
Navigate to fresh grok.com, don't continue old chats.
Close extra Chrome windows. Keep only one for reliable relay.
Response may still be streaming. Wait longer and snapshot again.
# Open and attach
exec: open -a "Google Chrome" "https://grok.com"
exec: sleep 3
exec: /Users/eason/clawd/scripts/attach-browser-relay.sh
# Get tab
browser action=tabs profile=chrome
# Returns targetId: ABC123...
# Type query
browser action=act profile=chrome targetId=ABC123 request={
"kind":"evaluate",
"fn":"(() => { const e = document.querySelector('[contenteditable=\"true\"]'); e.focus(); e.innerText = 'Explain quantum entanglement briefly'; return 'ok'; })()"
}
# Submit
browser action=act profile=chrome targetId=ABC123 request={"kind":"press","key":"Enter"}
# Wait
exec: sleep 15
# Snapshot to find Copy button
browser action=snapshot profile=chrome targetId=ABC123
# Find Copy button ref, e.g., e326
# Copy
browser action=act profile=chrome targetId=ABC123 request={"kind":"click","ref":"e326"}
# Read result
exec: pbpaste
Generated Feb 23, 2026
Researchers use Grok Browser to quickly query complex topics like quantum computing or literature reviews, leveraging DeepSearch for thorough answers. It helps synthesize information from Grok's AI responses directly into research notes without manual copying.
Content creators and marketers employ the skill to generate ideas, draft outlines, or get explanations on trending topics from Grok. By automating queries and copying responses, it streamlines brainstorming and content development workflows.
Developers and IT professionals query Grok for coding explanations, debugging tips, or learning new technologies. The skill automates getting step-by-step guidance and best practices, saving time compared to manual searches.
Analysts use Grok Browser to gather insights on market trends, competitor analysis, or data interpretations. DeepSearch enables in-depth responses that can be copied into reports for strategic decision-making.
Support teams integrate Grok queries to quickly find answers for customer inquiries or internal training. It automates fetching detailed explanations from Grok, improving response accuracy and efficiency.
Offer a subscription-based service that bundles Grok Browser with other AI query tools for businesses, providing automated research and content generation. Revenue comes from monthly or annual licenses tailored to team sizes.
Provide consulting to companies for integrating Grok Browser into their workflows, such as for data analysis or customer support. Revenue is generated through project-based fees and ongoing support contracts.
Develop a Chrome extension that simplifies Grok Browser usage with a user-friendly interface, offering basic features for free and advanced automation for a premium. Revenue comes from in-app purchases or upgrade subscriptions.
💬 Integration Tip
Ensure Chrome and the Browser Relay extension are properly configured before use, and always start fresh chats to avoid context issues for reliable automation.
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.
Advanced desktop automation with mouse, keyboard, and screen control
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.