add_package
Add packages from registry, GitHub, or disk to Unity Package Manager with optional version and branch specifications.
Instructions
Adds packages into the Unity Package Manager
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": {
"source": "<source>"
},
"name": "add_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The path to use (folder path for disk method or subfolder for GitHub) | |
| branch | No | The branch to use for GitHub packages (optional) | |
| source | Yes | The source to use (registry, github, or disk) to add the package | |
| version | No | The version to use for registry packages (optional) | |
| packageName | No | The package name to add from Unity registry (e.g. com.unity.textmeshpro) | |
| repositoryUrl | No | The GitHub repository URL (e.g. https://github.com/username/repo.git) |