SIGN IN SIGN UP

agent-host: fix image detection in browser screenshot tool (#316753)

Fixes the type field for embedded resources in tool results so that images
are properly recognized by the SDK. The tool was returning images with a
content type in the 'type' field instead of the semantic 'image' marker.

This ensures that when the Integrated Browser screenshot tool returns
image content, the Agent Host correctly identifies and surfaces those images
in the chat UI.

Fixes https://github.com/microsoft/vscode/issues/315947

(Commit message generated by Copilot)
C
Connor Peet committed
1221f4b5e83bcb5cdc4c9e6def7155633a65fd21
Parent: c3beccc
Committed by GitHub <noreply@github.com> on 5/16/2026, 6:58:47 AM