Class GetSHA
Handles getting SHA256 and basic metadata for Unity C# scripts without returning file contents.
Inherited Members
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. |