MCPcopy Create free account
hub / github.com/codeaashu/claude-code / renderToolUseMessage

Function renderToolUseMessage

src/tools/ReadMcpResourceTool/UI.tsx:10–15  ·  view source on GitHub ↗
(input: Partial<z.infer<ReturnType<typeof inputSchema>>>)

Source from the content-addressed store, hash-verified

8import { jsonStringify } from '../../utils/slowOperations.js';
9import type { inputSchema, Output } from './ReadMcpResourceTool.js';
10export function renderToolUseMessage(input: Partial<z.infer<ReturnType<typeof inputSchema>>>): React.ReactNode {
11 if (!input.uri || !input.server) {
12 return null;
13 }
14 return `Read resource "${input.uri}" from server "${input.server}"`;
15}
16export function userFacingName(): string {
17 return 'readMcpResource';
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected