analyze_repo
Analyze a public GitHub repository to return SLOC totals by language, with optional branch, tag, or commit ref for accurate code counts.
Instructions
Analyze a public GitHub repository with OctoCounts and return SLOC totals.
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": {
"repo_url": "<repo_url>"
},
"name": "analyze_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional branch, tag, or commit SHA. | |
| repo_url | Yes | GitHub URL or owner/repo. |