ElicitRequest

Represents an elicitation/create request from the server to the client.

Supports two modes: form mode (ElicitRequestFormParams) for collecting structured data in-band, and URL mode (ElicitRequestURLParams) for directing the user to an external URL.

Constructors

Link copied to clipboard
constructor(params: ElicitRequestParams)

Properties

Link copied to clipboard

The message to present to the user. This should clearly explain what information is being requested and why.

Link copied to clipboard

Metadata for this request. May include a progressToken for out-of-band progress notifications.

Link copied to clipboard
open override val method: Method

the request method identifier

Link copied to clipboard
open override val params: ElicitRequestParams

The elicitation parameters — either form or URL mode.

Link copied to clipboard

A restricted subset of JSON Schema defining the structure of the requested data.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.