diff options
| author | Agus Zubiaga <[email protected]> | 2025-08-13 12:58:26 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 15:58:26 +0000 |
| commit | d3fda9dafb3921c9edd5cf4fc166dedecd91d84f (patch) | |
| tree | 355aa9b16d9a296515e7c0ed91aa94969c41bc70 /packages/core/src/tools/write-file.ts | |
| parent | 150103e5ddaa3d6790f7d64e86b0e0deed576ad8 (diff) | |
Zed integration schema upgrade (#5536)
Co-authored-by: Conrad Irwin <[email protected]>
Co-authored-by: Ben Brandt <[email protected]>
Diffstat (limited to 'packages/core/src/tools/write-file.ts')
| -rw-r--r-- | packages/core/src/tools/write-file.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/core/src/tools/write-file.ts b/packages/core/src/tools/write-file.ts index 72aeba6d..fa1e1301 100644 --- a/packages/core/src/tools/write-file.ts +++ b/packages/core/src/tools/write-file.ts @@ -15,7 +15,8 @@ import { ToolEditConfirmationDetails, ToolConfirmationOutcome, ToolCallConfirmationDetails, - Icon, + Kind, + ToolLocation, } from './tools.js'; import { ToolErrorType } from './tool-error.js'; import { SchemaValidator } from '../utils/schemaValidator.js'; @@ -82,7 +83,7 @@ export class WriteFileTool `Writes content to a specified file in the local filesystem. The user has the ability to modify \`content\`. If modified, this will be stated in the response.`, - Icon.Pencil, + Kind.Edit, { properties: { file_path: { @@ -101,6 +102,10 @@ export class WriteFileTool ); } + toolLocations(params: WriteFileToolParams): ToolLocation[] { + return [{ path: params.file_path }]; + } + validateToolParams(params: WriteFileToolParams): string | null { const errors = SchemaValidator.validate( this.schema.parametersJsonSchema, |
