rename read_many_files (#153)

This commit is contained in:
Olcan 2025-04-24 12:15:49 -07:00 committed by GitHub
parent 19ed2ed630
commit d97d2a4f7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ export class ReadManyFilesTool extends BaseTool<
ReadManyFilesParams,
ToolResult
> {
static readonly Name: string = 'readManyFiles';
static readonly Name: string = 'read_many_files';
readonly targetDir: string;
/**
@ -165,7 +165,7 @@ export class ReadManyFilesTool extends BaseTool<
super(
ReadManyFilesTool.Name,
'Read Many Files',
'ReadManyFiles',
`Reads content from multiple text files specified by paths or glob patterns within a configured target directory and concatenates them into a single string.
This tool is useful when you need to understand or analyze a collection of files, such as:
- Getting an overview of a codebase or parts of it (e.g., all TypeScript files in the 'src' directory).
@ -345,7 +345,7 @@ Default excludes apply to common non-text files and large dependency directories
}
}
let displayMessage = `### Read Many Files Result (Target Dir: \`${this.targetDir}\`)\n\n`;
let displayMessage = `### ReadManyFiles Result (Target Dir: \`${this.targetDir}\`)\n\n`;
if (processedFilesRelativePaths.length > 0) {
displayMessage += `Successfully read and concatenated content from **${processedFilesRelativePaths.length} file(s)**.\n`;
displayMessage += `\n**Processed Files (up to 10 shown):**\n`;