Class WatchTool
A built-in tool for monitoring file system changes.
Watch directories for file creation, modification, deletion, and renaming.
public sealed class WatchTool : ITool, IDisposable
- Inheritance
-
WatchTool
- Implements
- Inherited Members
Examples
var tool = new WatchTool();
registry.Register(tool);
// Agent can now: start/stop watchers, get pending events
Constructors
- WatchTool()
Initializes a new instance with default settings.
- WatchTool(WatchToolOptions)
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.