Table of Contents

Class XmlQueryTool

Namespace
LMKit.Agents.Tools.BuiltIn.Data
Assembly
LM-Kit.NET.dll

A built-in tool for querying XML data using XPath expressions.

Supports returning a single match or all matching nodes.

public sealed class XmlQueryTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
XmlQueryTool
Implements
Inherited Members

Examples

var tool = new XmlQueryTool();
registry.Register(tool);

// Agent can now: query XML with XPath, find elements by path expression

Constructors

XmlQueryTool()

Initializes a new instance with default settings.

XmlQueryTool(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.

Share