getPrompt

suspend fun getPrompt(request: GetPromptRequest, options: RequestOptions? = null): GetPromptResult?(source)

Retrieves a prompt by name from the server.

Return

The requested prompt details, or null if not found.

Parameters

request

The prompt request containing the prompt name.

options

Optional request options.

Throws

If the server does not support prompts.