Class XmlTool
A built-in tool for XML manipulation operations.
Provides XPath queries, XML parsing, validation, and transformation.
public sealed class XmlTool : ITool
- Inheritance
-
XmlTool
- Implements
- Inherited Members
Examples
var tool = new XmlTool();
registry.Register(tool);
// Agent can now: query XML with XPath, transform with XSLT, validate structure
Constructors
- XmlTool()
Initializes a new instance with default settings.
- XmlTool(XmlToolOptions)
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.