get_package_version_for_authenticated_user
Fetch details of a specific package version for the authenticated user, including version ID, name, timestamps, and type-specific metadata. Requires package version ID from listing.
Instructions
Get a specific version of a package owned by the authenticated user.Returns the package-version object including the version id, name, creation/update timestamps, and type-specific metadata. Use list_package_versions_for_authenticated_user to find version ids. Requires the read:packages token scope. Docs: https://docs.github.com/en/rest/packages/packages#get-a-package-version-for-the-authenticated-user
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>",
"package_name": "<package_name>",
"package_version_id": "<package_version_id>"
},
"name": "get_package_version_for_authenticated_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | The name of the package. | |
| 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". | |
| package_version_id | Yes | The unique identifier of the package version. |