run_task_and_wait
Submit an AI application task and automatically poll until completion, combining task submission and result retrieval.
Instructions
Submit an AI application task and wait for completion (auto-polling). Combines submit_task + query_task_outputs into a full workflow. Default max wait is 10 minutes with 5-second polling interval. Task status is automatically synced to persistent storage.
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": {
"webapp_id": "<webapp_id>",
"node_info_list": "<node_info_list>"
},
"name": "run_task_and_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webapp_id | Yes | The webapp ID of the AI application | |
| node_info_list | Yes | Node parameter list, each containing nodeId, fieldName, fieldType, fieldValue | |
| timeout | No | Max wait time in seconds | |
| poll_interval | No | Polling interval in seconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||