MCPcopy Index your code
hub / github.com/codeaashu/claude-code / userFacingName

Function userFacingName

src/tools/FileReadTool/UI.tsx:165–173  ·  view source on GitHub ↗
(input: Partial<Input> | undefined)

Source from the content-addressed store, hash-verified

163 return <FallbackToolUseErrorMessage result={result} verbose={verbose} />;
164}
165export function userFacingName(input: Partial<Input> | undefined): string {
166 if (input?.file_path?.startsWith(getPlansDirectory())) {
167 return 'Reading Plan';
168 }
169 if (input?.file_path && getAgentOutputTaskId(input.file_path)) {
170 return 'Read agent output';
171 }
172 return 'Read';
173}
174export function getToolUseSummary(input: Partial<Input> | undefined): string | null {
175 if (!input?.file_path) {
176 return null;

Callers

nothing calls this directly

Calls 1

getAgentOutputTaskIdFunction · 0.85

Tested by

no test coverage detected