diff options
Diffstat (limited to 'packages/cli/src/tools/grep.tool.ts')
| -rw-r--r-- | packages/cli/src/tools/grep.tool.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/tools/grep.tool.ts b/packages/cli/src/tools/grep.tool.ts index 1c334a09..7dca170f 100644 --- a/packages/cli/src/tools/grep.tool.ts +++ b/packages/cli/src/tools/grep.tool.ts @@ -127,7 +127,7 @@ export class GrepTool extends BaseTool<GrepToolParams, ToolResult> { * @param params Parameters to validate * @returns An error message string if invalid, null otherwise */ - invalidParams(params: GrepToolParams): string | null { + validateToolParams(params: GrepToolParams): string | null { if ( this.schema.parameters && !SchemaValidator.validate( @@ -161,7 +161,7 @@ export class GrepTool extends BaseTool<GrepToolParams, ToolResult> { * @returns Result of the grep search */ async execute(params: GrepToolParams): Promise<ToolResult> { - const validationError = this.invalidParams(params); + const validationError = this.validateToolParams(params); if (validationError) { console.error(`GrepTool Parameter Validation Failed: ${validationError}`); return { |
