Class SlugGenerateTool
A built-in tool for URL slugification, filename sanitization, and naming convention conversion.
Generate URL-safe slugs, sanitize filenames, transliterate to ASCII, remove diacritics, and convert between kebab-case, snake_case, camelCase, PascalCase, and Title Case.
public sealed class SlugGenerateTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
SlugGenerateTool
- Implements
- Inherited Members
Examples
var tool = new SlugGenerateTool();
registry.Register(tool);
// Agent can now: create URL slugs, sanitize filenames, convert naming conventions
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.