package-add
Install Unity packages by ID, version, Git URL, or local path. Modifies manifest.json, triggers package resolution and domain reload. Supports registry, Git, and local packages.
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
| 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 |