Class XmlParseTool
A built-in tool for parsing and validating XML strings.
Returns structure information (root element, namespace, element/attribute counts) and validation status. Can optionally perform validation only.
public sealed class XmlParseTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
XmlParseTool
- Implements
- Inherited Members
Examples
var tool = new XmlParseTool();
registry.Register(tool);
// Agent can now: parse XML to get structure info, validate XML well-formedness
Constructors
- XmlParseTool()
Initializes a new instance.
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.