You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prompts/chrome.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,14 +58,14 @@ tools:
58
58
- url
59
59
container:
60
60
image: zenika/alpine-chrome
61
-
network_mode: host
62
-
background: true
63
61
command:
64
62
- "--no-sandbox"
65
63
- "--remote-debugging-address=0.0.0.0"
66
64
- "--remote-debugging-port=9222"
67
65
- "{{url|safe}}"
68
66
background: true
67
+
ports:
68
+
- "9222:9222"
69
69
---
70
70
71
71
# prompt
@@ -87,7 +87,7 @@ Examples:
87
87
```sh
88
88
# Get the websocket url
89
89
# 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
91
91
92
92
# Navigate to a page
93
93
# 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
105
105
106
106
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.
107
107
108
+
## Question
109
+
108
110
The following is the question you are trying to answer:
109
111
110
112
{{query}}
113
+
114
+
(if there is no question, just confirm Chrome is running and ready to answer questions)
0 commit comments