list_packages_for_authenticated_user
List packages owned by the authenticated GitHub user, filtering by required package type and optional visibility.
Instructions
List packages owned by the authenticated user (the owner of GITHUB_TOKEN).Requires the read:packages token scope. The package_type filter is required — pass one of npm, maven, rubygems, docker, nuget, or container. Optionally filter by visibility (public, private, internal). Paginate with page and per_page. Docs: https://docs.github.com/en/rest/packages/packages#list-packages-for-the-authenticated-users-namespace
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": {
"package_type": "<package_type>"
},
"name": "list_packages_for_authenticated_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| per_page | No | ||
| visibility | No | Filter packages by visibility. Returns all visibilities if omitted. | |
| package_type | Yes | The type of package. One of: npm, maven, rubygems, docker, nuget, container. Packages pushed to GitHub Container Registry (ghcr.io) have type "container". Packages pushed to the legacy Docker registry (docker.pkg.github.com) have type "docker". |