Class FileSystemWatchManageTool
A built-in tool for managing file system watchers.
Stop watchers, list active watchers, retrieve pending events, and clear event queues.
public sealed class FileSystemWatchManageTool : IBuiltInTool, ITool, IToolMetadata, IDisposable
- Inheritance
-
FileSystemWatchManageTool
- 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
- FileSystemWatchManageTool()
Initializes a new instance with default settings.
- FileSystemWatchManageTool(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.