Create a response with multiple content items.
Useful for returning text alongside images or multiple text blocks.
Array of text, image, and/or audio content
Optional
Optional metadata
A CallToolResult with multiple content items
return multi([ { type: 'text', text: 'Here is the chart:' }, { type: 'image', data: chartBase64, mimeType: 'image/png' },]); Copy
return multi([ { type: 'text', text: 'Here is the chart:' }, { type: 'image', data: chartBase64, mimeType: 'image/png' },]);
Create a response with multiple content items.
Useful for returning text alongside images or multiple text blocks.