normalize_media_link
Validates and canonicalizes Spotify track/playlist, Instagram post/reel, and Twitter/X status URLs into consistent links locally, rejecting short, malformed, unsupported, or credential-bearing URLs.
Instructions
Validate and canonicalize a Spotify track/playlist, Instagram post/reel, or Twitter/X status URL. Parses locally; does not check availability, fetch metadata or download content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public media URL to validate and canonicalize. | |
| platform | No | Platform the URL belongs to. Defaults to Spotify. | spotify |