←back to thread

Claude in Chrome

(claude.com)
278 points ianrahman | 3 comments | | HN request time: 0.623s | source
Show context
codegladiator ◴[] No.46342648[source]
How did chrome webstore team approve use of eval/new function in chrome plugin ? Isn't that against their tos ?

  Execute JavaScript code in the context of the current page
replies(3): >>46342661 #>>46344105 #>>46346913 #
1. miki_oomiri ◴[] No.46344105[source]
I don't think they mean executing locally JS code generated server-side.
replies(1): >>46344214 #
2. codegladiator ◴[] No.46344214[source]
Its a "tool call" definition in their code named 'execute_javascript', which takes in a "code" parameter and executes it. The code here being provided by the LLM which is not sitting locally. So that code is not present "in the plugin binary" at the time when chrome store team is reviewing it.
replies(1): >>46344534 #
3. miki_oomiri ◴[] No.46344534[source]
I'd very curious to know how they managed to deal with this then. There's always the option of embedding quickjs-vm within the addon (as a wasm module), but that would not allow the executed code to access the document.