onElicitationRequest method
Register a handler for server-initiated elicitation/create
requests (spec 2025-06-18). The handler shows the requested form to
the user and returns { action, content? } per spec — action is
accept / decline / cancel.
The client answers only when it declared elicitation in its
ClientCapabilities (elicitation: true, or elicitationForm /
elicitationUrl); otherwise the request is refused.
Implementation
void onElicitationRequest(
Future<Map<String, dynamic>> Function(Map<String, dynamic> params) handler,
) {
_requestHandlers['elicitation/create'] = handler;
}