wait_for_authorization
Wait for the user's decision on a pending workspace authorization request, blocking until approval or timeout so you can retry the original task with the correct authorization state.
Instructions
Wait for the user's decision on a pending workspace authorization request.
When run_subagent returns error_code=WORKSPACE_NOT_AUTHORIZED with pending=true, the workspace is waiting on a HUMAN: Fluxion has raised a notification and the user must approve it. Retrying the task immediately cannot succeed. Call this tool with the returned authorization_request_id instead of ending your turn to ask the user to report back — they approve while this call is waiting.
Pass wait_ms > 0 to long-poll: the call blocks until the request leaves "pending" or the wait elapses. wait_ms is capped at FLUXION_MCP_STATUS_MAX_WAIT_MS (default 60000 = 60s) to stay under the MCP client's per-call request timeout, so an unanswered request just comes back pending — call again to keep waiting, and tell the user you are waiting on their approval.
Act on status, not on the fact that the call returned:
approved: retry the original run_subagent with the same authorization_request_id (the returned retry_authorization_request_id).
project-allowed: the user granted the workspace permanently; retry the task WITHOUT authorization_request_id.
pending: still undecided; keep waiting or ask the user. Do NOT retry.
denied: the user refused. Do NOT retry and do NOT raise the same request again; report the refusal.
expired / consumed / active / not-found: this request id is finished. Submit a fresh run_subagent without an authorization_request_id if the work is still wanted.
next_action states the same thing in one sentence; should_retry is true only
when retrying will actually be authorized.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_ms | No | ||
| authorization_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||