Deslugify transforms URL slugs back into human-readable text by replacing hyphens with spaces and applying proper capitalization. Use via MCP in Cursor or Windsurf, or call GET /v1/slug/deslugify directly. Input "react-native-best-practices" returns "React Native Best Practices" — perfect for converting slugified content back to display titles.
curl "https://tinyfn.io/v1/slug/deslugify" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/slug/deslugify', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/slug/deslugify',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's url/slug tools:
{
"mcpServers": {
"tinyfn-slug": {
"url": "https://tinyfn.io/mcp/slug",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
It capitalizes the first letter of each word, converting "javascript-array-methods" to "Javascript Array Methods". The transformation assumes standard title case formatting.
The tool is designed for hyphen-separated slugs. For underscore-separated strings, you'll need a different text transformation approach or manual replacement.
Use TinyFn's slugify tool to convert readable text back to URL-safe slugs. Both tools work together for bidirectional slug/text conversion in AI agents.
Numbers are preserved ("api-v2-guide" becomes "Api V2 Guide"), but the tool focuses on hyphen-to-space conversion with basic capitalization rules.
Common use cases include generating page titles from URL slugs, converting filename slugs to display names, or transforming slugified database entries back to readable labels.