package-add
Install Unity packages from the Package Manager registry, Git URLs, or local paths to modify project dependencies and trigger package resolution.
Instructions
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packageId | Yes | The package ID to install. Formats: Package ID 'com.unity.textmeshpro' (installs latest compatible version), Package ID with 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'. | |
| requestId | No |