You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent Host: Agent can't see images returned by Integrated Browser screenshots tool #315947
agent-hostIssues for the agent-host implementation (not the protocol)browser-integrationWeb browsing features integrated into VS Code (e.g., integrated browser)bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Start an Agent Host local session. (for verifier: if you don't know how to do that, follow this TPI)
Type the prompt:
Open apple.com, take a screenshot, and tell me the output of the screenshot tool
Important
NOTE added on May 14: Please make sure to use this exact same prompt, since if you don't ask explicitly about the output of the screenshot tool, it will hallucinate what it thinks is in the output based on the text-based ARIA snapshot provided by other browser tools.
🐛 It says that the tool returned no output, despite the screenshot appearing in the chat:
Please make sure to use the exact same prompt I mentioned in the repro above, since if you don't ask explicitly about the output of the screenshot tool, it will hallucinate what it thinks is in the output based on the text-based ARIA snapshot provided by other browser tools.
Compare with the output when using regular (non-agent-host) VS Code:
agent-hostIssues for the agent-host implementation (not the protocol)browser-integrationWeb browsing features integrated into VS Code (e.g., integrated browser)bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
connor4312 commentedon May 12, 2026
This does seem to work for me:
If you can run the "VS Code Agents" and "Attach to Agent Host" launch config, please capture
vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts
Line 2799 in 5a43ad6
vscode/src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts
Line 487 in 5a43ad6
jruales commentedon May 14, 2026
Please make sure to use the exact same prompt I mentioned in the repro above, since if you don't ask explicitly about the output of the screenshot tool, it will hallucinate what it thinks is in the output based on the text-based ARIA snapshot provided by other browser tools.
Compare with the output when using regular (non-agent-host) VS Code:
connor4312 commentedon May 14, 2026
Seems like it's an SDK issue, tracking in microsoft/copilot-sdk#1298
9 remaining items
agentHost: fix empty client tool results (#320678)
agent-host: fix image detection in browser screenshot tool (#316753)
agent-host: fix image detection in browser screenshot tool (#316753)