destructive: true, execution pauses until a human approves or denies the action.
The elicitation lifecycle
ElicitationEngine
TheElicitationEngine class manages the full lifecycle:
Key methods
Session approvals
Once a user approves a tool, the engine can remember the approval for the session. Subsequent calls to the same tool path auto-approve without pausing:Using elicit() in plugin handlers
Inside a tool handler, callctx.elicit() to request approval:
elicit() function takes a single object parameter:
Returns an
ElicitationResponse:
Elicitation types
approval— simple yes/no confirmation. The most common type.form— collect additional data from the user. The response includes adataobject with the user’s input.