AI产品精选

建议AI编程助手如Codex和Cursor向Web视图开放API

It would be great if AI agents like Codex and Cursor could expose an API to web views. This would al...

精选理由

这个想法解决了AI编程助手与网页交互的割裂问题,做AI工具或Web应用的开发者值得关注,可以尝试在项目中实现类似机制。

AI 摘要

开发者建议AI编程助手如Codex和Cursor向右侧Web视图开放API,使网页能直接向左侧聊天界面发送提示(含文本和图片)。例如,类似Claude Design的网页可添加输入框,用户输入后调用类似window.codex.sendPrompt的API将内容推送到聊天界面。这能实现代理与网页更深层次的交互,解锁更多可能性。

原文 · 宝玉

It would be great if AI agents like Codex and Cursor could expose an API to web views. This would al...

It would be great if AI agents like Codex and Cursor could expose an API to web views. This would allow a webpage opened in the right pane to send prompts (including text and images) directly back to the agent. For instance, if I build a webpage similar to Claude Design, I could add an in-page input box. When a user enters a prompt and clicks "send", the webpage would call an API like "window.codex.sendPrompt(text, attachments)" to push that content straight into the chat interface on the left. This would enable much deeper interaction between the agent and the webpage, unlocking a lot more possibilities. cc @thsottiaux @jxnlco @Dimillian 💬 0 🔄 0 ❤️ 0 👀 46 ⚡

  • shao__meng06-02 01:15原文
  • rohanpaul_ai06-03 12:38原文
  • Simon Willison’s Weblog06-03 11:33原文