Get Task
get_taskCheck the status of an asynchronous presentation generation task, optionally waiting up to 60 seconds for completion or failure, and return the latest result state.
Instructions
Status of an async task (e.g. a presentation generation).
With wait_time=0, returns an immediate snapshot. With wait_time>0 (capped at
60s), waits until the task reaches COMPLETED/FAILED or the window elapses,
then returns the latest status. Once a generation is COMPLETED, get_export
returns its file.
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": {
"task_id": "<task_id>"
},
"name": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| wait_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Task type — determines which Restate handler to invoke. | |
| error | Yes | ||
| status | Yes | Lifecycle state of an async task: CREATED (queued), RUNNING, then COMPLETED or FAILED. | |
| task_id | Yes | ||
| subject_id | Yes |