list_repos
List repositories accessible to the authenticated user, or specify a username or organization to list their repositories. Supports pagination.
Instructions
List repositories.
Three modes:
ownerempty: returns repositories accessible to the authenticated user (GET /user/repos).owneris a user: returns that user's repositories (GET /users/{owner}/repos).owneris an organization: returns that org's repositories (GET /orgs/{owner}/repos— automatically tried as a fallback when the user endpoint 404s, so callers don't need to know which it is).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_repos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | Username or organization to list repos for. Leave empty to list repositories accessible to the authenticated user. | |
| page | No | Page number (1-indexed) | |
| limit | No | Items per page (max 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |