Converts the tool spec to a JSON-serializable map.
Map<String, dynamic> toJson() { return { 'name': name, 'description': description, 'inputJsonSchema': inputJsonSchema, 'strict': strict, }; }