Function: createFsReadOnlyTools()
ts
function createFsReadOnlyTools<THandle>(runner?): readonly [FsReadToolNode<THandle>, FsGlobToolNode<THandle>, FsGrepToolNode<THandle>];Defined in: fs/src/builders/create-fs-read-only-tools.ts:29
Compiles the 3-tool workspace-jailed read-only bundle (fs.readOnlyTools(runner?)).
Returns passive ToolASTNode descriptors (read_file, glob_files, grep_files) with effectTracking: 'declared' for evaluators, adjudicators, and arbiters, defaulting runner to DEFAULT_NODE_RUNNER_AST_NODE when omitted.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
runner? | MaybeBuilder<NodeRunnerNode> | DEFAULT_NODE_RUNNER_AST_NODE | Optional runner pool AST node or builder. |
Returns
readonly [FsReadToolNode<THandle>, FsGlobToolNode<THandle>, FsGrepToolNode<THandle>]
Frozen 3-tuple of read-only filesystem tool AST nodes.