Automating Claude Desktop via Chrome DevTools Protocol

Electron apps support the Chrome DevTools Protocol. That means Claude Desktop can be launched with a debug flag and controlled programmatically: /Applications/Claude.app/Contents/MacOS/Claude --remote-debugging-port=9222 Hit localhost:9222 and you can inject JavaScript directly into the UI. From there, things get interesting fast. What you can do Extract responses — Use a MutationObserver to…