Skip to content

Conversation

naaa760
Copy link

@naaa760 naaa760 commented Oct 5, 2025

PR Description

  • automatically filters out images, videos, audio, and other media content from MCP server message attributes to prevent large media from breaking instrumentation. Tracks dropped media via client reports.

fixes: #17810

Changes:

  • Added media detection logic for common file types (images, videos, audio, documents)
  • Filters media content from tool results and prompt results before attribute extraction
  • Integrates with existing client reports system to track dropped media
  • Preserves all text content while removing only media items

@RulaKhaled RulaKhaled self-requested a review October 6, 2025 08:38
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.

Drop Media from messages in SDKs and document behavior
1 participant