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

Method getDescription

packages/core/src/tools/ls.ts:110–116  ·  view source on GitHub ↗

* Gets a description of the file reading operation * @returns A string describing the file being read

()

Source from the content-addressed store, hash-verified

108 * @returns A string describing the file being read
109 */
110 getDescription(): string {
111 const relativePath = makeRelative(
112 this.params.path,
113 this.config.getTargetDir(),
114 );
115 return shortenPath(relativePath);
116 }
117
118 // Helper for consistent error formatting
119 private errorResult(llmContent: string, returnDisplay: string): ToolResult {

Callers

nothing calls this directly

Calls 3

makeRelativeFunction · 0.85
shortenPathFunction · 0.85
getTargetDirMethod · 0.80

Tested by

no test coverage detected