Overview
When arun script calls a destructive tool, execution pauses and returns a paused result with an executionId. Use resume to approve or deny the pending action.
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
execution_id | string | Yes | The execution ID from the paused run |
approved | boolean | Yes | Whether to approve the pending action |
data | object | No | Additional form data if the elicitation type is form |
Annotations
destructiveHint: trueopenWorldHint: true
Output
Approved
Denied
Not found
Resolution flow
- The
resumetool first checks the localElicitationEnginefor a matching pending elicitation - If found locally, it resolves the pending promise, allowing the paused script to continue
- If not found locally, it falls back to the
resumeRemotecallback (e.g., posting to the hosted API) - If neither is available, it returns an error