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
feat: enhance MCP tool response handling to support images
**Changes:**
- Updated `processToolContent` to return both text and images from tool results.
- Modified `executeToolAndProcessResult` to handle and pass images to the response.
- Adjusted `combineCommandSequences` to preserve images from MCP server responses.
- Updated UI components to display images alongside text responses.
**Testing:**
- Added tests to verify correct handling of tool results with text and images.
- Ensured that image-only responses are processed correctly.
**Files Modified:**
- `src/core/prompts/responses.ts`
- `src/core/tools/useMcpToolTool.ts`
- `src/shared/combineCommandSequences.ts`
- `webview-ui/src/components/chat/McpExecution.tsx`
- `webview-ui/src/components/chat/ChatRow.tsx`
- Test files for MCP tool functionality.
0 commit comments