runtime-invoke
Invoke any public static method on any class in Unity Play Mode to trigger game actions, change state, run test helpers, or execute debug commands. Provide type name, method name, and optional JSON arguments.
Instructions
Invoke a public static method on any class in Play Mode. Useful for triggering game actions, changing state, calling test helpers, or executing debug commands. The method must be public and static. For instance methods on MonoBehaviours, use 'reflection-method-call' instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | Full type name (e.g. 'MyNamespace.GameManager') or simple name (e.g. 'GameManager'). Searches all loaded assemblies. | |
| methodName | Yes | Name of the public static method to invoke. | |
| arguments | No | Arguments as JSON array (e.g. '["hello", 42, true]'). Leave empty or '[]' for no-arg methods. Supported types: string, int, float, bool, null. | [] |