toJson method

Map<String, Object?> toJson()

The protocol's tool object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'name': name,
  'description': ?description,
  'inputSchema': inputSchema,
  'outputSchema': ?outputSchema,
  'annotations': hints.toJson(),
  if (meta.isNotEmpty) '_meta': meta,
};