createElicitation
Sends a message to the client requesting 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.
Sends a message to the client requesting elicitation. This typically results in a form being displayed to the user.
For form-mode requests, accepted content is validated against the requested schema. 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 elicitation request parameters.
Optional request options.
Throws
If the server or client does not support elicitation.
If an accepted form-mode response does not match its requested schema.