# Function handleGetPrompt

- handleGetPrompt(name: string, args?: Record<string, string>): PromptResult

  Handle GetPrompt request

  #### Parameters

  - name: string

    Prompt name

  - `Optional` args: Record<string, string>

    Prompt arguments

  #### Returns PromptResult

  Prompt result with messages

  #### Throws

  Error if prompt name is unknown

  - Defined in prompts/index.ts:494