unity_build
Build a Unity project for a selected target platform and output path, with optional scenes and development settings.
Instructions
Build the project for a target platform.
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": {
"target": "<target>",
"outputPath": "<outputPath>"
},
"name": "unity_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| scenes | No | Scene paths; default: enabled Build Settings scenes | |
| target | Yes | Platform | |
| outputPath | Yes | Build output path | |
| developmentBuild | No | Development build (default: false) | |
| managedCodeVariant | No | Unity 6.6+, protocol 3. Default: Checked for Development, Release otherwise. This build only. |