unity_invoke
Invoke a public static C# method by type and method name with JSON arguments, serving as an escape hatch for Unity actions not covered by dedicated tools.
Instructions
Invoke a public static C# method by type+method name with JSON args (escape hatch for anything not covered). (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"method": "<method>"
},
"name": "unity_invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | positional args, coerced to parameter types | |
| type | Yes | full type name, e.g. UnityEngine.Debug | |
| method | Yes |