callToolWithFormElicitation method

Future<McpJsonMap> callToolWithFormElicitation(
  1. String name, {
  2. required McpFormElicitationHandler onElicitation,
  3. Object? id,
  4. McpJsonMap arguments = const <String, Object?>{},
  5. bool streamable = true,
  6. String? protocolVersion,
  7. Map<String, String> headers = const <String, String>{},
  8. int maxInputRequiredRounds = 8,
})

Calls a modern stateless tool and completes bounded form input rounds through onElicitation.

Implementation

Future<McpJsonMap> callToolWithFormElicitation(
  String name, {
  required McpFormElicitationHandler onElicitation,
  Object? id,
  McpJsonMap arguments = const <String, Object?>{},
  bool streamable = true,
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
  int maxInputRequiredRounds = 8,
}) {
  return _callToolWithFormElicitation(
    name,
    onElicitation: onElicitation,
    id: id,
    arguments: arguments,
    streamable: streamable,
    direct: false,
    protocolVersion: protocolVersion,
    headers: headers,
    maxInputRequiredRounds: maxInputRequiredRounds,
  );
}