EditFileTool
Generated by TypeDoc. Do not edit this page directly.
Class: EditFileTool
Section titled “Class: EditFileTool”Defined in: packages/tools-node/src/files.ts:135
Extends
Section titled “Extends”HarnessTool<EditFileInput>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EditFileTool(): EditFileTool;Returns
Section titled “Returns”EditFileTool
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”| Property | Type | Default value | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
approvalTimeoutMs? | number | undefined | - | HarnessTool.approvalTimeoutMs | packages/core/src/runtime/types/tools.ts:55 |
description | string | "Replace exact text in a UTF-8 file inside the harness workDir." | HarnessTool.description | - | packages/tools-node/src/files.ts:137 |
label? | string | undefined | - | HarnessTool.label | packages/core/src/runtime/types/tools.ts:48 |
name | string | "edit_file" | HarnessTool.name | - | packages/tools-node/src/files.ts:136 |
permissions | object[] | undefined | HarnessTool.permissions | - | packages/tools-node/src/files.ts:141 |
requiresApproval | boolean | true | HarnessTool.requiresApproval | - | packages/tools-node/src/files.ts:140 |
risk | "write" | undefined | HarnessTool.risk | - | packages/tools-node/src/files.ts:139 |
schema | ObjectSchema<{ expectedReplacements: OptionalSchema<unknown, number | undefined>; path: StringSchema; replace: StringSchema; search: StringSchema; }> | editFileSchema | HarnessTool.schema | - | packages/tools-node/src/files.ts:138 |
Accessors
Section titled “Accessors”inputSchema
Section titled “inputSchema”Get Signature
Section titled “Get Signature”get inputSchema(): unknown;Defined in: packages/core/src/runtime/types/tools.ts:61
Returns
Section titled “Returns”unknown
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get type(): string;Defined in: packages/core/src/runtime/types/tools.ts:57
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”execute()
Section titled “execute()”execute(args, session): Promise<AgentToolResult<unknown>>;Defined in: packages/tools-node/src/files.ts:143
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args | ObjectInput |
session | AgentActionSession |
Returns
Section titled “Returns”Promise<AgentToolResult<unknown>>