get_compile_job
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.get_compile_job
Maturity: stable (support status; independent of enabled state, readiness and permissions).
Description
Read compilation status, bounded diagnostics and the last successful compile by compile_id. Unknown means incomplete evidence; readiness and source-revision proof are separate.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
compile_id | str | yes | Opaque compile_id returned by refresh_unity with compile=request |
observe_source | bool | — | Capture current source inputs without importing or compiling |
unity_instance | str | 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 compile job created by a refresh. Replace the example ID with the compile ID returned by refresh_unity and use the same Editor instance.
MCP arguments
{
"compile_id": "0123456789abcdef0123456789abcdef"
}