Skip to content

Function: createFsReadToolDriver() ​

ts
function createFsReadToolDriver<THandle>(): ToolDriver<FsReadToolNode<THandle>, THandle>;

Defined in: fs/src/executors/fs-read-tool-drivers.ts:30

Creates the workspace-jailed ToolDriver for FsReadToolNode (fs:read / read_file).

Emits synchronous FsToolEffect read records (mutatesScope: false) and reads UTF-8 file text after verifying realpathSync containment inside the active worktree.

Type Parameters ​

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

Returns ​

ToolDriver<FsReadToolNode<THandle>, THandle>

Frozen fs:read tool driver.

Released under the MIT License.