Table of Contents

Class YamlQueryTool

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

A built-in tool for querying YAML data using dot-notation paths.

Parses YAML content and navigates to a specific value using a dot-notation path with array index support (e.g., "spec.containers[0].name").

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

Examples

var queryTool = new YamlQueryTool();
var result = await queryTool.InvokeAsync(@"{""yaml"":""users:\n  - name: Alice\n    age: 30"",""path"":""users[0].name""}");

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