Get task
get_taskA generation's state ("running", "done" or "failed") and, when done, its output URLs. Pass waitSeconds (up to 20) to wait for it to finish within this call; repeat while state is "running" — do not submit the same generation again. Without taskId: the user's latest generations from any app or the website, newest first. Never spends credits.
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": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Without taskId: how many latest tasks. | |
| taskId | No | From generate_video or generate_image. | |
| waitSeconds | No |