Identifies text case patterns like camelCase, snake_case, kebab-case, and PascalCase. Call via MCP in Cursor or Windsurf, or hit GET /v1/case/detect with your text. Returns the detected case type as a string — useful for code analysis, naming convention validation, or preprocessing before case conversion.
curl "https://tinyfn.io/v1/case/detect" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/detect', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/case/detect',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's case conversion tools:
{
"mcpServers": {
"tinyfn-case": {
"url": "https://tinyfn.io/mcp/case",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Detects camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, lowercase, UPPERCASE, and mixed patterns. Returns the primary case type found in the text.
In Cursor, Claude Code, or Windsurf, call the detect_case tool with your text string. Perfect for AI agents analyzing codebases or validating naming conventions across files.
Mixed patterns return the dominant case type detected. Single words without separators default to lowercase. Numbers and special characters are handled gracefully.
Each API call processes one text string. For bulk detection, make multiple requests or integrate into your processing pipeline.
Detect case identifies existing patterns without changing text. Use it before conversion tools to understand current format or validate naming consistency.