generate_slug
Convert any text into a URL-safe slug by removing punctuation, normalizing Unicode, collapsing whitespace, and lowercasing. Specify separator and optional max length for clean links.
Instructions
Generate a URL-safe slug from any text.
Handles Unicode normalization (café → cafe), removes punctuation, collapses whitespace, and lowercases the result.
Args: text: The text to slugify (e.g. "Hello World! Café & More") separator: Word separator — "-", "_", or "." (default "-") max_length: Optional maximum slug length
Returns: dict with keys: slug, original, separator, length, cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| separator | No | - | |
| max_length | No |