MCPcopy Create free account
hub / github.com/Waishnav/devspace / toolNameFromMeta

Function toolNameFromMeta

src/ui/workspace-app.tsx:548–552  ·  view source on GitHub ↗
(result: CallToolResult)

Source from the content-addressed store, hash-verified

546}
547
548function toolNameFromMeta(result: CallToolResult): ToolName | undefined {
549 const meta = result._meta as Record<string, unknown> | undefined;
550 const tool = meta?.tool;
551 return isToolName(tool) ? tool : undefined;
552}
553
554function cardFromMeta(result: CallToolResult): Partial<ToolResultCard> | undefined {
555 const meta = result._meta as Record<string, unknown> | undefined;

Callers 1

bootFunction · 0.85

Calls 1

isToolNameFunction · 0.85

Tested by

no test coverage detected