laserfiche_task_wait
Wait for an async operation to reach a terminal state with configurable polling and timeout, returning the final status or a timed-out indicator.
Instructions
Block until an async operation reaches a terminal state.
Preferred over manual polling with get_task_status. Returns
quickly when the op is fast; otherwise polls at poll_interval_seconds
until Completed, Failed, or Canceled — or until
timeout_seconds is reached, in which case the last observed
status is returned with timed_out=true so the caller can decide
whether to keep waiting.
Args: operation_token: Token from the originating async tool. timeout_seconds: Maximum time to wait (default 60). Set higher for large folder deletes or large copies. poll_interval_seconds: Delay between status checks (default 1.0). Bounded below at 0.1s.
Returns: Same payload as get_task_status, with an added
timed_out boolean indicating whether the wait ended on timeout.
On failure: if a poll call fails mid-wait, returns
{"mode": "error", "error": <slug>, "operation_token": <str>, ...}.
Common slugs: not_found (token invalidated by server restart),
auth_failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation_token | Yes | Operation token returned by an async tool (delete_entry, copy_entry, occasionally import_document). Server-scoped; tokens from a different server instance won't resolve. | |
| timeout_seconds | No | Maximum time to wait. Set higher for large folder deletes or large copies. Returns the last observed status with timed_out=True if the deadline is reached. | |
| poll_interval_seconds | No | Delay between status checks. Bounded below at 0.1s. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||