Class TextSearchTool
A built-in tool for searching within text.
Supports contains, starts-with, ends-with checks, and regex match/extract operations.
public sealed class TextSearchTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
TextSearchTool
- Implements
- Inherited Members
Examples
var tool = new TextSearchTool();
registry.Register(tool);
// Agent can now: check if text contains a substring, match regex patterns, extract groups
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.