Local Directory
Readonly access to a project on the local filesystem.
Constructors
Properties
Provide sanitizers that run on file content before returning it. They must be sure not to change any content that may need to be replaced as this will break editing if editing is done in the same session.
Tool callbacks referenced or exposed.
Functions
Finds files containing the specified pattern using glob patterns
Checks if a file path matches a glob pattern
Use for safe reading of files. Returns null if the file doesn't exist or is not readable.
Return the instances of tool object. Defaults to this
Create a tool object for this reference.
A safe prefix for LLM tools associated with this reference. Defaults to the name lowercased with spaces replaced by underscores. Subclasses can override it
Returns a copy of this LocalDirectory with the given usage notes.