Cancel Pending Question
cancel_questionRetract a pending question so it can no longer be answered. Use this when a question became irrelevant before the user replied: the agent found the answer itself, the task was aborted, or a newer question supersedes it. Cancelling prevents a stale approval from arriving later and acting on work that has moved on. Only affects questions that are still pending; questions expire on their own 10 minutes after creation. Returns { cancelled: true } when a pending question was removed. False means it was already answered, expired, unknown, or unavailable; when status is unavailable, follow handoffAction and stop rather than opening another answer surface.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handoff | No | True when you are cancelling because you are about to ask the same question in the current client. For the next minute the Pushary hook then lets your own question tool through instead of sending it back to the phone. Set automatically whenever a live question is cancelled. | |
| correlationId | Yes | The correlationId of the pending question to cancel, as returned by ask_user or send_notification |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | What to do when cancellation could not safely inspect the question. | |
| status | No | Present when Pushary could not safely read or fence the question state. | |
| cancelled | Yes | True when a still-pending question was removed. False when it was already terminal, missing, or unavailable; inspect status and handoffAction when present. | |
| askHandoff | No | True when the session was marked as handing off to the current client, so the hook will not re-ask on the phone for the next minute. | |
| correlationId | Yes | The question this result refers to, echoed back. | |
| handoffAction | No | Stop rather than opening another answer surface when the question state is unavailable. |