get_job
Check the status, progress, elapsed time, and final result of a background job from a long-running ServiceNow tool; optionally wait for it to complete.
Instructions
Check a background job started by a long-running tool (async: true, or a call that ran past about 20 seconds). Returns status (running, completed, failed, cancelled), progress, elapsed time and, once finished, the tool result. Pass wait_seconds to wait for it to finish.
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": "get_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id a long-running tool returned | |
| wait_seconds | No | Wait up to this many seconds (max 25) for the job to finish before answering. Default 0. |