State of a Lua job
lua_job_statusCheck a Lua job's progress, CPU use, and final result, wait for completion, or list all running and uncollected jobs across realms.
Instructions
With id: the state of a job started by lua_job (frames, elapsed_s, cpu_ms, last progress, reports_count); once it has finished, its full result exactly like lua_job's, and the job is then forgotten. wait_s waits up to that long for the end. A job id belongs to one Lua state: after a map change (new realm) an id of the old state answers realm_reset. Without id: every job of every realm, running or finished but not collected yet.
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": "lua_job_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Job id returned by lua_job (e.g. 'server-g3-1'). | |
| fields | No | Keep only these keys of each returned table. | |
| wait_s | No | Wait up to this long for the job to finish (default 0). | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| jobs | No | ||
| next | No | ||
| note | No | ||
| state | No | ||
| cpu_ms | No | ||
| frames | No | ||
| job_id | No | ||
| output | No | ||
| values | No | ||
| reports | No | ||
| resumes | No | ||
| warning | No | ||
| progress | No | ||
| elapsed_s | No | ||
| next_call | No | ||
| projected | No | ||
| truncated | No | ||
| generation | No | ||
| answered_by | No | ||
| fields_note | No | ||
| reports_count | No | ||
| truncated_note | No | ||
| version_warning | No | ||
| blocked_console_commands | No |