推文建议,Codex、Cursor等AI智能体应提供API接口,允许右侧面板的网页视图直接向智能体发送包含文本和附件的提示词。例如,用户可构建类似Claude Design的网页,通过调用"window.codex.sendPrompt(text, attachments)"等API,将输入内容直接推送到左侧聊天界面。此举旨在实现智能体与网页间更深层的交互,从而解锁更多可能性。
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