Get C# Job Result
unity_get_code_resultPoll a Unity code-execution job by job_id to retrieve its status, JSON output, and Debug.Log lines once the async run finishes.
Instructions
Poll a code-execution job: running | done {output, logs} | error {error, logs}.
Use when: after unity_execute_code returned a job_id. If still running, wait and poll again. Output is the JSON of your 'return' value; logs are Debug.Log lines captured during Run().
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": {
"job_id": "<job_id>"
},
"name": "unity_get_code_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job id returned by unity_execute_code |