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

Method getDescription

packages/core/src/tools/glob.ts:94–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 getDescription(): string {
95 let description = `'${this.params.pattern}'`;
96 if (this.params.path) {
97 const searchDir = path.resolve(
98 this.config.getTargetDir(),
99 this.params.path || '.',
100 );
101 const relativePath = makeRelative(searchDir, this.config.getTargetDir());
102 description += ` within ${shortenPath(relativePath)}`;
103 }
104 return description;
105 }
106
107 async execute(signal: AbortSignal): Promise<ToolResult> {
108 try {

Callers

nothing calls this directly

Calls 3

makeRelativeFunction · 0.85
shortenPathFunction · 0.85
getTargetDirMethod · 0.80

Tested by

no test coverage detected