Class JsonParseTool
A built-in tool for parsing and validating JSON strings.
Returns structure information (type, preview) and validation status. Optionally performs validation only without returning structure info.
public sealed class JsonParseTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
JsonParseTool
- Implements
- Inherited Members
Examples
var tool = new JsonParseTool();
var result = await tool.InvokeAsync(@"{""json"":""{\"name\":\"Alice\"}""}");
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.