detect_project_type
Detects project type from repository file paths, returning the recommended Codemagic template and confidence level. Optionally accepts package.json content for improved detection in JavaScript/TypeScript projects.
Instructions
Detect the Codemagic project type from a repository file listing. Returns the recommended template type, confidence level, and the suggested debug template to use for initial onboarding. For JavaScript/TypeScript projects, providing package.json content significantly improves accuracy.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_paths": "<file_paths>"
},
"name": "detect_project_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes | File paths in the repository relative to the root. Include at least two directory levels for best results. | |
| package_json_content | No | Content of package.json if present — used to detect React Native vs Ionic by inspecting dependencies |