get_package_for_authenticated_user
Retrieve a package owned by the authenticated user using its type and name, returning metadata like version count, visibility, repository link, and timestamps. Requires read:packages scope.
Instructions
Get a specific package owned by the authenticated user.Returns the package metadata including name, type, version count, visibility, repository link, and timestamps. Requires the read:packages token scope. Docs: https://docs.github.com/en/rest/packages/packages#get-a-package-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>"
},
"name": "get_package_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". |