Class JsonQueryTool
A built-in tool for querying JSON data using dot-notation paths.
Supports extracting values, listing keys or values, and counting elements in JSON objects and arrays.
public sealed class JsonQueryTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
JsonQueryTool
- Implements
- Inherited Members
Examples
var tool = new JsonQueryTool();
var result = await tool.InvokeAsync(@"{""json"":""{\"user\":{\"name\":\"Alice\"}}"",""path"":""user.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.