Class ManageScriptCapabilities
Handles getting Unity.ManageScript capabilities including supported operations, limits, and guards.
Inherited Members
Namespace: Unity.AI.MCP.Editor.Tools
Assembly: Unity.AI.MCP.Editor.dll
Syntax
public static class ManageScriptCapabilities
Fields
Description
Description of the Unity.ManageScript_capabilities tool for MCP clients. Returns information about supported operations, payload limits, and guard settings for script management.
Declaration
public const string Description = "Get Unity.ManageScript capabilities (supported ops, limits, and guards).\n\nReturns:\n- ops: list of supported structured ops\n- text_ops: list of supported text ops\n- max_edit_payload_bytes: server edit payload cap\n- guards: header/using guard enabled flag"
Field Value
| Type | Description |
|---|---|
| string |
Methods
GetOutputSchema()
Returns the output schema for this tool.
Declaration
[McpOutputSchema("Unity.ManageScript_capabilities")]
public static object GetOutputSchema()
Returns
| Type | Description |
|---|---|
| object | The JSON schema object describing the tool's output structure. |
HandleCommand(ManageScriptCapabilitiesParams)
Main handler for getting script capabilities.
Declaration
[McpTool("Unity.ManageScript_capabilities", "Get Unity.ManageScript capabilities (supported ops, limits, and guards).\n\nReturns:\n- ops: list of supported structured ops\n- text_ops: list of supported text ops\n- max_edit_payload_bytes: server edit payload cap\n- guards: header/using guard enabled flag", null, null, Groups = new string[] { "core", "scripting" })]
public static object HandleCommand(ManageScriptCapabilitiesParams parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| ManageScriptCapabilitiesParams | parameters | The parameters for retrieving script capabilities. |
Returns
| Type | Description |
|---|---|
| object | A response object containing supported operations, limits, and guards. |