wait_for_unity_compile
Pause commands until Unity finishes compiling and asset updates, then return compiler diagnostics; use it before editor operations and poll original command IDs after timeouts.
Instructions
Wait until Unity is no longer compiling or updating assets. Waits through stale heartbeat/domain reload up to timeoutMs; requires a fresh settled Editor and completed compilation. Returns compiler diagnostics. A timeout does not cancel pending commands; poll their original IDs instead of resubmitting.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_unity_compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutMs | No | Maximum time to wait for Unity to settle | |
| maxResponseBytes | No | Maximum UTF-8 bytes of the complete result text. Omitted entries are reported; narrow filters or explicitly raise the budget for more detail. |