callToolAsTask method

  1. @override
Future<Task> callToolAsTask(
  1. String name,
  2. Map<String, dynamic> toolArguments, {
  3. int? ttl,
  4. Map<String, dynamic>? meta,
  5. RequestOptions? options,
})
override

Call name as a 2025-11-25 task: the answer is the task, the result comes from taskResult. Only where the server accepts tool tasks and the tool allows them (tools/list is read when the tool is unknown).

Implementation

@override
Future<Task> callToolAsTask(
  String name,
  Map<String, dynamic> toolArguments, {
  int? ttl,
  Map<String, dynamic>? meta,
  RequestOptions? options,
}) => inner.callToolAsTask(
  name,
  toolArguments,
  ttl: ttl,
  meta: meta,
  options: options,
);