createElicitation
Sends a message to the client requesting an elicitation. This typically results in a form being displayed to the end user.
Accepted content is validated against requestedSchema. If content is absent, an empty object is used for validation only, so declared required properties still apply. The returned ElicitResult is not modified.
Return
The result of the elicitation request.
Parameters
The message for the elicitation to display.
The schema the server requests for the elicitation result. Influences the form displayed to the user.
Optional request options.
Throws
If the server or client does not support elicitation.
If an accepted response does not match requestedSchema.
Sends a URL mode elicitation request to the client, directing the user to an external URL for out-of-band interactions.
Return
The result of the elicitation request.
Parameters
The message explaining why the interaction is needed.
A unique identifier for the elicitation.
The URL that the user should navigate to.
Optional request options.
Throws
If the server or client does not support elicitation.