AGENT SKILL

package-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.

License 许可
MIT
所属仓库
devwinsoft/devian
最近更新
2026-04-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
package-add
description
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.

02 资源文件 11

03 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.

How to Call

HTTP API (Direct Tool Execution)

Execute this tool directly via the MCP Plugin HTTP API:

curl -X POST http://localhost:50187/api/tools/package-add \
  -H "Content-Type: application/json" \
  -d '{
  "packageId": "string_value"
}'

With Authorization (if required)

curl -X POST http://localhost:50187/api/tools/package-add \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
  "packageId": "string_value"
}'

The token is stored in the file: UserSettings/AI-Game-Developer-Config.json Using the format: "token": "YOUR_TOKEN"

Input

Name Type Required Description
packageId string 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'.

Input JSON Schema

{
  "type": "object",
  "properties": {
    "packageId": {
      "type": "string",
      "description": "The package ID to install. Formats: Package ID \u0027com.unity.textmeshpro\u0027 (installs latest compatible version), Package ID with version \u0027com.unity.textmeshpro@3.0.6\u0027, Git URL \u0027https://github.com/user/repo.git\u0027, Git URL with branch/tag \u0027https://github.com/user/repo.git#v1.0.0\u0027, Local path \u0027file:../MyPackage\u0027."
    }
  },
  "required": [
    "packageId"
  ]
}

Output

This tool does not return structured output.

04 同仓库更多 Skills