Skip to content

Commit 8b990b8

Browse files
author
colinmcneil
committed
Switch chrome prompt back to bridge mode
1 parent fae2882 commit 8b990b8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

prompts/chrome.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ tools:
5858
- url
5959
container:
6060
image: zenika/alpine-chrome
61-
network_mode: host
62-
background: true
6361
command:
6462
- "--no-sandbox"
6563
- "--remote-debugging-address=0.0.0.0"
6664
- "--remote-debugging-port=9222"
6765
- "{{url|safe}}"
6866
background: true
67+
ports:
68+
- "9222:9222"
6969
---
7070

7171
# prompt
@@ -87,7 +87,7 @@ Examples:
8787
```sh
8888
# Get the websocket url
8989
# NOTE: Set the host header to be localhost:9222 due to chrome's default behavior to only allow localhost
90-
curl -X PUT -sg http://host.docker.internal:9222/json/new
90+
curl -X PUT -H "Host: localhost:9222" -sg http://host.docker.internal:9222/json/new
9191

9292
# Navigate to a page
9393
# We are setting --jsonrpc mode, so the first word is the method name and the rest is the arguments.
@@ -105,6 +105,10 @@ For more complex tasks, use websocat to send and receive messages to the browser
105105

106106
It is important that when you are done with your page, you close it. This is important because the browser could continue to run even after you close the websocket connection.
107107

108+
## Question
109+
108110
The following is the question you are trying to answer:
109111

110112
{{query}}
113+
114+
(if there is no question, just confirm Chrome is running and ready to answer questions)

0 commit comments

Comments
 (0)