MCPcopy Create free account
hub / github.com/anus-dev/ANUS / transformImageAudioBlock

Function transformImageAudioBlock

packages/core/src/tools/mcp-tool.ts:217–234  ·  view source on GitHub ↗
(
  block: McpMediaBlock,
  toolName: string,
)

Source from the content-addressed store, hash-verified

215}
216
217function transformImageAudioBlock(
218 block: McpMediaBlock,
219 toolName: string,
220): Part[] {
221 return [
222 {
223 text: `[Tool '${toolName}' provided the following ${
224 block.type
225 } data with mime-type: ${block.mimeType}]`,
226 },
227 {
228 inlineData: {
229 mimeType: block.mimeType,
230 data: block.data,
231 },
232 },
233 ];
234}
235
236function transformResourceBlock(
237 block: McpResourceBlock,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected