Skip to content

Browser: 'Add screenshot to chat'#317679

Draft
jruales wants to merge 1 commit into
mainfrom
jruales/2026.05-screenshot-to-chat
Draft

Browser: 'Add screenshot to chat'#317679
jruales wants to merge 1 commit into
mainfrom
jruales/2026.05-screenshot-to-chat

Conversation

@jruales
Copy link
Copy Markdown
Contributor

@jruales jruales commented May 21, 2026

image

Copilot AI review requested due to automatic review settings May 21, 2026 02:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an Integrated Browser command/action to capture a viewport screenshot and attach it to the Chat input, and reorganizes the existing “add to chat” actions into a dedicated submenu surfaced as a split-button in the browser actions toolbar.

Changes:

  • Add a new AddScreenshotToChat command and corresponding Action2 to capture and attach a browser screenshot to chat.
  • Move existing “Add Element to Chat” and “Add Console Logs to Chat” actions into a new BrowserChatActionsMenu submenu.
  • Expose that submenu as a split-button (“Add to Chat”) in the BrowserActionsToolbar.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/features/browserEditorChatFeatures.ts Implements screenshot capture + attachment, adds new action, and restructures chat-related actions into a submenu split-button.
src/vs/platform/browserView/common/browserView.ts Adds a new command ID for “Add Screenshot to Chat”.
src/vs/platform/actions/common/actions.ts Introduces a new MenuId for the browser chat actions submenu.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

id: 'browser-screenshot-' + Date.now(),
name: localize('browserScreenshot', 'Browser Screenshot'),
fullName: localize('browserScreenshot', 'Browser Screenshot'),
kind: 'image',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants