docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GetSHA

    Handles getting SHA256 and basic metadata for Unity C# scripts without returning file contents.

    Inheritance
    object
    GetSHA
    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
    Assembly: Unity.AI.MCP.Editor.dll
    Syntax
    public static class GetSHA

    Fields

    Description

    Human-readable description of the Unity.GetSha tool functionality and usage.

    Declaration
    public const string Description = "Get SHA256 and basic metadata for a Unity C# script without returning file contents"
    Field Value
    Type Description
    string

    Methods

    GetOutputSchema()

    Returns the output schema for this tool.

    Declaration
    [McpOutputSchema("Unity.GetSha")]
    public static object GetOutputSchema()
    Returns
    Type Description
    object

    The output schema object defining the structure of successful responses.

    HandleCommand(GetSHAParams)

    Main handler for getting script SHA256 and metadata.

    Declaration
    [McpTool("Unity.GetSha", "Get SHA256 and basic metadata for a Unity C# script without returning file contents", null, null, Groups = new string[] { "core", "scripting" })]
    public static object HandleCommand(GetSHAParams parameters)
    Parameters
    Type Name Description
    GetSHAParams parameters

    Parameters containing the script URI or path.

    Returns
    Type Description
    object

    A response object with SHA256 hash and metadata, or an error if the operation fails.

    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)