WriteFileTool
Generated by TypeDoc. Do not edit this page directly.
Class: WriteFileTool
Section titled “Class: WriteFileTool”Defined in: packages/tools-node/src/files.ts:111
Extends
Section titled “Extends”HarnessTool<WriteFileInput>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WriteFileTool(): WriteFileTool;Returns
Section titled “Returns”WriteFileTool
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 | "Write or append a UTF-8 text file inside the harness workDir." | HarnessTool.description | - | packages/tools-node/src/files.ts:113 |
label? | string | undefined | - | HarnessTool.label | packages/core/src/runtime/types/tools.ts:48 |
name | string | "write_file" | HarnessTool.name | - | packages/tools-node/src/files.ts:112 |
permissions | object[] | undefined | HarnessTool.permissions | - | packages/tools-node/src/files.ts:117 |
requiresApproval | boolean | true | HarnessTool.requiresApproval | - | packages/tools-node/src/files.ts:116 |
risk | "write" | undefined | HarnessTool.risk | - | packages/tools-node/src/files.ts:115 |
schema | ObjectSchema<{ append: OptionalSchema<unknown, boolean | undefined>; content: StringSchema; path: StringSchema; }> | writeFileSchema | HarnessTool.schema | - | packages/tools-node/src/files.ts:114 |
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:119
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args | ObjectInput |
session | AgentActionSession |
Returns
Section titled “Returns”Promise<AgentToolResult<unknown>>