import_wait
Poll import status until a terminal state (FINISHED, FAILED) with exponential backoff and timeout. Returns result counts for INFO, WARNING, ERROR upon completion.
Instructions
Polls import_status until the import reaches a terminal state (FINISHED, FINISHED_WITH_WARNINGS, FAILED, CANCELED, REVERTED). Exponential backoff (2s → 1.5× → cap 30s). Default timeout 600s — if exceeded, returns { status: 'POLLING', importId, lastSeen } so the LLM can re-call. Includes a per-type result count summary on terminal states (INFO / WARNING / ERROR; null if the server didn't return totals).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from companies_list. | |
| importId | Yes | Import id from imports_list or import_execute. | |
| timeoutSeconds | No | Max seconds to wait before returning POLLING. Default 600. |