Get a single package version
Look up one version of a package by its numeric id.
-
Know the version’s
versionId— if you don’t, run list-package-versions first. -
Call the tool:
get_package_version { org: "your-org", packageType: "npm", packageName: "your-package", versionId: 123456 } -
Read the result:
{ id, name, createdAt }.
This is the recommended step before deleting a version — confirm the
name and createdAt match what you expect before calling
delete-package-version.
Common mistake
Section titled “Common mistake”versionId is GitHub’s internal numeric package-version id, not the
semver/tag name string shown elsewhere (e.g. 1.2.3 or sha256:...).
Passing a version’s display name where an id is expected fails validation
(the schema requires an integer) rather than silently matching by name.