package-add
Installation
SKILL.md
Package Manager / Add
Install a package from the Unity Package Manager registry, Git URL, or local path. This operation modifies the project's manifest.json and triggers package resolution. Note: Package installation may trigger a domain reload. The result will be sent after the reload completes. Use 'package-search' tool to search for packages and 'package-list' to list installed packages.
packageId formats
- Plain package ID:
com.unity.textmeshpro(installs latest compatible version). - Pinned version:
com.unity.textmeshpro@3.0.6. - Git URL:
https://github.com/user/repo.git. - Git URL with branch/tag:
https://github.com/user/repo.git#v1.0.0. - Local path:
file:../MyPackage.
Processing model
Returns Processing immediately with the supplied requestId. Once Client.Add completes, a follow-up result is delivered: success → SchedulePostDomainReloadNotification (delivers after the reload finishes), failure → an immediate error notification with the underlying Unity error message.