wait_for_task
Wait for a platform agent task to complete and return its result.
Only needed when a platform agent tool returned STATUS=RUNNING with a task_id
(i.e. the task was still running after the initial 50s inline wait).
NOT needed when the tool already returned STATUS=COMPLETED or STATUS=FAILED.
NOT needed for a2a_call_agent — that always returns directly.
Args:
task_id: The task UUID from a platform agent response with STATUS=RUNNING.
max_wait_seconds: Max seconds to wait (default 45, max 300).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| max_wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |