Connects to user's running Brave via Chrome DevTools Protocol to automate ChatGPT interaction. Uses puppeteer-core to open a tab, send the prompt, wait for response, and extract the result. No cookies, no separate profiles, no copy/paste. Just connects to the browser where the user is already logged in. One-time setup: relaunch Brave with --remote-debugging-port=9222 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
814 B
Plaintext
29 lines
814 B
Plaintext
# Copyright 2017 The Chromium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
|
|
|
# The Tethering domain defines methods and events for browser port binding.
|
|
experimental domain Tethering
|
|
|
|
# Request browser port binding.
|
|
command bind
|
|
parameters
|
|
# Port number to bind.
|
|
integer port
|
|
|
|
# Request browser port unbinding.
|
|
command unbind
|
|
parameters
|
|
# Port number to unbind.
|
|
integer port
|
|
|
|
# Informs that port was successfully bound and got a specified connection id.
|
|
event accepted
|
|
parameters
|
|
# Port number that was successfully bound.
|
|
integer port
|
|
# Connection id to be used.
|
|
string connectionId
|