Skip to content

isFilesystemToolRegistered

isFilesystemToolRegistered(filesystemConfig, toolName, access): boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/filesystem-tools.ts:40

Whether a filesystem tool is registered under the given filesystem config.

access is the tool’s own read/write class — the runtime gthFileSystemType the toolkit stamps on each tool, or BUILT_IN_TOOL_ACCESS for a caller that has only a name. A tool with no class is never covered by 'read'; it can still be named explicitly in the array form.

The array form is an allow-list of tool NAMES which may also carry the 'read' and 'all' keywords, so ['read', 'write_file'] means “every read tool, plus write_file”. A value that is neither a known mode nor an array leaves the toolset unrestricted, matching the filter’s own fallback, so an absent or malformed value never silently strips the model’s tools.

FilesystemToolsConfig | undefined

string | undefined

BuiltInToolAccess | undefined

boolean