Wait on a job
get_jobKeep waiting on a job convert_file handed back unfinished, or one sent to the HTTP API, and return its download link once it is done.
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": {
"taskId": "<taskId>",
"engine": "<engine>",
"format": "<format>"
},
"name": "get_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | Yes | The engine named in the same answer. | |
| format | Yes | The format the job writes, e.g. "jpg": the format from the same answer. | |
| taskId | Yes | The taskId from convert_file's answer, or from the HTTP API's. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| next | No | ||
| error | No | ||
| state | No | ||
| engine | No | ||
| format | No | ||
| reason | No | ||
| taskId | No | ||
| expires | No | ||
| failure | No | ||
| message | No | ||
| download | No | ||
| progress | No | ||
| outputBytes | No | ||
| downloadBefore | No |