getPromptDirect method

Future<McpJsonMap> getPromptDirect(
  1. String name, {
  2. Object? id,
  3. Map<String, String> arguments = const <String, String>{},
  4. String? protocolVersion,
  5. Map<String, String> headers = const <String, String>{},
})

Resolves a prompt through the direct JSON API.

Implementation

Future<McpJsonMap> getPromptDirect(
  String name, {
  Object? id,
  Map<String, String> arguments = const <String, String>{},
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
}) {
  return getPrompt(
    name,
    id: id,
    arguments: arguments,
    directJson: true,
    protocolVersion: protocolVersion,
    headers: headers,
  );
}