using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace io.github.hatayama.uLoopMCP
{
///
/// Response structure for GetHierarchy tool
/// Always returns the JSON file path of exported hierarchy data.
///
[Serializable]
public class GetHierarchyResponse : BaseToolResponse
{
///
/// Human-readable guidance for clients to locate and read the JSON file
///
[JsonProperty(Order = -2)]
public string message { get; }
///
/// File path where hierarchy data was saved
///
[JsonProperty(Order = -1)]
public string hierarchyFilePath { get; }
public GetHierarchyResponse(string filePath, string message = null)
{
this.hierarchyFilePath = filePath ?? string.Empty;
this.message = string.IsNullOrEmpty(message)
? "Hierarchy data saved below. Open the JSON to read 'Context' and 'Hierarchy'."
: message;
}
}
}