Class HtmlTool
A built-in tool for HTML parsing and manipulation.
Extract elements, strip tags, decode entities, sanitize content.
public sealed class HtmlTool : ITool
- Inheritance
-
HtmlTool
- Implements
- Inherited Members
Examples
var tool = new HtmlTool();
registry.Register(tool);
// Agent can now: extract links, strip HTML, decode entities
Remarks
Uses regex-based parsing. For complex HTML, consider a proper HTML parser library.
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.