summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-05-21 16:59:23 -0700
committerGitHub <[email protected]>2025-05-21 16:59:23 -0700
commitd74b0ac81da8a9e20a95baa6c0b1cacbac5e7f67 (patch)
tree18a5376ece6bb49434292749204dbc96111de008
parent43da8bc7479b4b9dddb94148cc4c4eeae8908d18 (diff)
Remove unneeded linebreaks in tool description in read-many-files. (#476)
-rw-r--r--packages/server/src/tools/read-many-files.ts18
1 files changed, 2 insertions, 16 deletions
diff --git a/packages/server/src/tools/read-many-files.ts b/packages/server/src/tools/read-many-files.ts
index 9593fe86..1f9ab86e 100644
--- a/packages/server/src/tools/read-many-files.ts
+++ b/packages/server/src/tools/read-many-files.ts
@@ -161,13 +161,7 @@ export class ReadManyFilesTool extends BaseTool<
super(
ReadManyFilesTool.Name,
'ReadManyFiles',
- `Reads content from multiple files specified by paths or glob patterns
-within a configured target directory. For text files, it concatenates their content
-into a single string. It is primarily designed for text-based files. However, it can
-also process image (e.g., .png, .jpg) and PDF (.pdf) files if their file names or
-extensions are explicitly included in the 'paths' argument. For these explicitly
-requested non-text files, their data is read and included in a format suitable for
-model consumption (e.g., base64 encoded).
+ `Reads content from multiple files specified by paths or glob patterns within a configured target directory. For text files, it concatenates their content into a single string. It is primarily designed for text-based files. However, it can also process image (e.g., .png, .jpg) and PDF (.pdf) files if their file names or extensions are explicitly included in the 'paths' argument. For these explicitly requested non-text files, their data is read and included in a format suitable for model consumption (e.g., base64 encoded).
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).
@@ -176,15 +170,7 @@ This tool is useful when you need to understand or analyze a collection of files
- Gathering context from multiple configuration files.
- When the user asks to "read all files in X directory" or "show me the content of all Y files".
-Use this tool when the user's query implies needing the content of several files
-simultaneously for context, analysis, or summarization.
-For text files, it uses default UTF-8 encoding and a '--- {filePath} ---' separator between file contents.
-Ensure paths are relative to the target directory. Glob patterns like 'src/**/*.js' are supported.
-Avoid using for single files if a more specific single-file reading tool is available,
-unless the user specifically requests to process a list containing just one file via this tool.
-Other binary files (not explicitly requested as image/PDF) are generally skipped.
-Default excludes apply to common non-text files (except for explicitly requested images/PDFs)
-and large dependency directories unless 'useDefaultExcludes' is false.`,
+Use this tool when the user's query implies needing the content of several files simultaneously for context, analysis, or summarization. For text files, it uses default UTF-8 encoding and a '--- {filePath} ---' separator between file contents. Ensure paths are relative to the target directory. Glob patterns like 'src/**/*.js' are supported. Avoid using for single files if a more specific single-file reading tool is available, unless the user specifically requests to process a list containing just one file via this tool. Other binary files (not explicitly requested as image/PDF) are generally skipped. Default excludes apply to common non-text files (except for explicitly requested images/PDFs) and large dependency directories unless 'useDefaultExcludes' is false.`,
parameterSchema,
);
this.targetDir = path.resolve(targetDir);