Skip to main content

manage_build

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: core  ·  Module: services.tools.manage_build

Maturity: stable (support status; independent of enabled state, readiness and permissions).

Description​

Manage Unity player builds — trigger builds, switch platforms, configure settings, manage build scenes and profiles, run batch builds across platforms. Actions: plan, build_from_plan, build, status, platform, settings, scenes, profiles, batch, cancel, clean_output, report_history, report, compare_reports. plan observes one ordinary build without applying settings; build_from_plan requires its expected_plan_sha256 and rejects drift. These actions do not support build profiles or batch targets. clean_output previews an explicit Builds/ descendant by default; dry_run=false deletes it. Refuses links, active builds, project source paths, and scans over 5000 entries. Read-only report_history/report/compare_reports retain bounded completed build summaries, paged steps/packed_assets and semantic comparisons across domain reload. Detailed build report summaries include observed Editor and Player target, define inputs and assembly filter differences when callbacks were available. Active observations after reload are interrupted, not resumed. Absolute paths/messages are omitted. Reports expire after 30 days or bounded eviction; missing/corrupt/partial evidence is explicit.

Parameters​

NameTypeRequiredDescription
actionstryesAction: plan, build_from_plan, build, status, platform, settings, scenes, profiles, batch, cancel, clean_output, report_history, report, compare_reports
targetstr | None—Build target: windows64, osx, linux64, android, ios, webgl, uwp, tvos, visionos
output_pathstr | None—Output path for the build
scenesstr | None—JSON array of scene paths, or comma-separated paths
developmentstr | None—Development build (true/false)
optionsstr | None—JSON array of BuildOptions: clean_build, auto_run, deep_profiling, compress_lz4, strict_mode, detailed_report
subtargetstr | None—Build subtarget: player or server
scripting_backendstr | None—Scripting backend: mono or il2cpp (persistent change)
profilestr | None—Build Profile asset path (requires the Editor's Build Profile API)
propertystr | None—Settings property: product_name, company_name, version, bundle_id, scripting_backend, defines, architecture
valuestr | None—Value to set for the property (omit to read)
activatestr | None—Activate a build profile (true/false)
targetsstr | None—JSON array of targets for batch build
profilesstr | None—JSON array of profile paths for batch build (requires the Editor's profile build API)
output_dirstr | None—Base output directory for batch builds
job_idstr | None—Job ID for status/cancel
expected_plan_sha256str | None—build_from_plan only: 64-hex SHA256 from a fresh ordinary build plan
dry_runbool | str | None—clean_output only: preview by default; explicitly false deletes the selected Builds/ descendant. No links allowed.
report_idstr | None—Opaque retained report ID from report_history/status.
baseline_report_idstr | None—compare_reports baseline report identity.
candidate_report_idstr | None—compare_reports candidate report identity.
report_sectionstr | None—report/compare_reports: summary (default), steps or packed_assets.
page_sizeint | str | None—Report reads/comparisons: 1-100 rows; default 50.
page_numberint | str | None—Report reads/comparisons: 1-based page.
report_revisionstr | None—report: exact 64-hex observation revision for stable repeated pages.
baseline_revisionstr | None—compare_reports: optional observed baseline revision.
candidate_revisionstr | None—compare_reports: optional observed candidate revision.
history_revisionstr | None—report_history: optional 64-hex inventory revision for repeated pages.
wait_timeoutint—Optional initial build job observation, 0..60 seconds.
unity_instancestr | int | None—Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance.

Returns​

A dict containing the Unity response. The exact shape depends on the action.

Examples​

Read the first 10 retained build reports to find a report ID for detailed inspection or comparison.

MCP arguments
{
"action": "report_history",
"page_size": 10
}