unity_packages_add
Add a Unity package by its identifier, such as 'com.unity.cinemachine' or with a specific version like '@3.0.0'. Ideal for installing dependencies programmatically.
Instructions
Add/install a Unity package by identifier (e.g. 'com.unity.cinemachine' or 'com.unity.cinemachine@3.0.0').
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": {
"identifier": "<identifier>"
},
"name": "unity_packages_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| identifier | Yes | Package identifier, e.g. 'com.unity.cinemachine@3.0.0' |