docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ValidateScriptParams

    Parameters for the Unity.ValidateScript tool.

    Inheritance
    object
    ValidateScriptParams
    Implements
    IEquatable<ValidateScriptParams>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AI.MCP.Editor.Tools.Parameters
    Assembly: Unity.AI.MCP.Editor.dll
    Syntax
    public record ValidateScriptParams : IEquatable<ValidateScriptParams>

    Properties

    IncludeDiagnostics

    Gets or sets whether to include full diagnostic details in the response. When false, only returns error and warning counts.

    Declaration
    [McpDescription("When true, returns full diagnostics and summary; when false, returns counts only", Required = false)]
    public bool IncludeDiagnostics { get; set; }
    Property Value
    Type Description
    bool

    Level

    Gets or sets the validation level. Valid values are 'basic' for quick syntax checks or 'standard' for deeper analysis.

    Declaration
    [McpDescription("Validation level ('basic' for quick syntax checks, 'standard' for deeper checks)", Required = false)]
    public string Level { get; set; }
    Property Value
    Type Description
    string

    Uri

    Gets or sets the URI or Assets-relative path to the C# script to validate.

    Declaration
    [McpDescription("URI or Assets-relative path to the script (e.g., 'unity://path/Assets/Scripts/MyScript.cs', 'file://...', or 'Assets/Scripts/MyScript.cs')", Required = true)]
    public string Uri { get; set; }
    Property Value
    Type Description
    string

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)