Skip to content

SearchToolsOptions

Defined in: packages/tools/src/file/search.ts:16

Shared constructor fields for tools that materialize through an EffectGate.

optional allowRead?: FileAllowRead

Defined in: packages/tools/src/file/search.ts:30

Directories grep’s path may target. Omitted defaults to [root]. import(”../unbounded-allow-read”).UNBOUNDED_ALLOW_READ is host-wide. null (or []) means nothing can be searched. A list is exactly those roots — root is not inserted. The executor’s own allowRead is still the subprocess read boundary.


optional denyRead?: string[]

Defined in: packages/tools/src/file/search.ts:32

Paths rejected as a grep path, even when they sit inside root or allowRead.


effectGate: EffectGate

Defined in: packages/tools/src/approval/types.ts:25

Pre-materialize gate. Required — pass import(“@agent-dev-lab/core”).allowAllGate explicitly for tests / permissive local hosts.

GatedToolOptions.effectGate


effectScope: ToolEffectScope

Defined in: packages/tools/src/approval/types.ts:27

Run identity stamped onto each tool intent.

GatedToolOptions.effectScope


executor: BashExecutor

Defined in: packages/tools/src/file/search.ts:21

Isolation strategy — required: this tool never picks an executor, and there’s no unsandboxed default.


root: string

Defined in: packages/tools/src/file/search.ts:23

Directory relative search paths resolve against.


optional timeoutMs?: number

Defined in: packages/tools/src/file/search.ts:34

Wall-clock timeout per search, in milliseconds. Default 30,000 (30s).