Class ColorTool
A built-in tool for color manipulation and conversion.
Convert between RGB, HEX, HSL, check contrast, generate palettes.
public sealed class ColorTool : ITool
- Inheritance
-
ColorTool
- Implements
- Inherited Members
Examples
var tool = new ColorTool();
registry.Register(tool);
// Agent can now: convert colors, check accessibility, generate palettes
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.