using System.ComponentModel;
namespace io.github.hatayama.uLoopMCP
{
///
/// Supported log types for filtering: Log, Warning, Error, All
///
public static class McpLogType
{
public const string Log = "Log";
public const string Warning = "Warning";
public const string Error = "Error";
public const string All = "All";
}
///
/// Schema for GetLogs command parameters
/// Provides type-safe parameter access with default values
///
public class GetLogsSchema : BaseToolSchema
{
///
/// Log type to filter (Error, Warning, Log, All)
///
[Description("Log type to filter (Error, Warning, Log, All)")]
public string LogType { get; set; } = McpLogType.All;
///
/// Maximum number of logs to retrieve
///
[Description("Maximum number of logs to retrieve")]
public int MaxCount { get; set; } = 100;
///
/// Text to search within log messages (retrieve all if empty)
///
[Description("Text to search within log messages (retrieve all if empty)")]
public string SearchText { get; set; } = "";
///
/// Whether to use regular expression for search
///
[Description("Whether to use regular expression for search")]
public bool UseRegex { get; set; } = false;
///
/// Whether to search within stack trace as well
///
[Description("Whether to search within stack trace as well")]
public bool SearchInStackTrace { get; set; } = false;
///
/// Whether to display stack trace
///
[Description("Whether to display stack trace")]
public bool IncludeStackTrace { get; set; } = false;
}
}