Class FileSystemWatchStartTool
A built-in tool for starting file system watchers.
Starts monitoring a directory for file creation, modification, deletion, and renaming events.
public sealed class FileSystemWatchStartTool : IBuiltInTool, ITool, IToolMetadata, IDisposable
- Inheritance
-
FileSystemWatchStartTool
- Implements
- Inherited Members
Examples
var helpers = new FileSystemWatchToolHelpers(new FileSystemWatchToolOptions());
var startTool = new FileSystemWatchStartTool(helpers);
var manageTool = new FileSystemWatchManageTool(helpers);
registry.Register(startTool);
registry.Register(manageTool);
Constructors
- FileSystemWatchStartTool()
Initializes a new instance with default settings.
- FileSystemWatchStartTool(FileSystemWatchToolOptions)
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.