Skip to content

Function: createFsWriteToolDriver() ​

ts
function createFsWriteToolDriver<THandle>(): ToolDriver<FsWriteToolNode<THandle>, THandle>;

Defined in: fs/src/executors/fs-write-tool-drivers.ts:50

Creates the workspace-jailed ToolDriver for FsWriteToolNode (fs:write / write_file).

Emits synchronous FsToolEffect write descriptors (mutatesScope: true) populated with existingPathsAtBaseRef and proposedContent, and writes UTF-8 text to disk.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

Returns ​

ToolDriver<FsWriteToolNode<THandle>, THandle>

Frozen fs:write tool driver.

Released under the MIT License.