Class FileSystemSearchTool
Searches for files recursively by name pattern, content, size, and date filters.
public sealed class FileSystemSearchTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
FileSystemSearchTool
- Implements
- Inherited Members
Examples
Finding TODOs across a code base:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new FileSystemSearchTool()))
.Build();
var result = await agent.RunAsync(@"Find every file under C:\src that contains the string 'TODO'.");
Constructors
- FileSystemSearchTool()
Initializes a new instance with default settings.
- FileSystemSearchTool(FileSystemToolOptions)
Initializes a new instance with custom options.
Properties
- Description
Gets a concise description of what the tool does.
- InputSchema
Gets the JSON Schema defining the expected input arguments.
- Name
Gets the stable, unique identifier for this tool.
Methods
- InvokeAsync(string, CancellationToken)
Executes the tool with the specified JSON arguments.