Detect repository i18n structure
detect_repositoryScan a GitHub repository to detect its framework, locale path patterns, source/target languages, and file format. Use the result to inform create_project and set_repository_patterns. Use the numeric installationId from list_github_installations.
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": {
"installationId": "<installationId>",
"owner": "<owner>",
"repo": "<repo>"
},
"name": "detect_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| branch | No | Branch to scan — normally the primary branch (the first of the watched branches the repository is, or will be, connected with). Defaults to the repository's default branch. | |
| installationId | Yes | GitHub App installation id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | ||
| message | No | What was found instead, when nothing was detected | |
| detected | Yes | Whether any locale files were found to configure | |
| appGroups | No | ||
| framework | No | ||
| fileFormat | Yes | ||
| namespaces | No | ||
| matchedFiles | No | ||
| scoredPresets | Yes | ||
| sourceLanguage | Yes | null when no locale file was found | |
| discoveredFiles | Yes | ||
| localeSpellings | No | ||
| targetLanguages | Yes | ||
| localePathPatterns | Yes |