invoke
Run specific methods in .NET assemblies with or without debugging. Pass custom arguments and enable debug mode to set breakpoints and step through code execution for troubleshooting.
Instructions
Invoke a specific method in a .NET assembly. Can run with or without debugging. Use debug mode to set breakpoints and step through the code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assembly | Yes | Path to the .NET DLL containing the type | |
| type | Yes | Fully qualified type name (e.g., 'MyApp.Services.Calculator') | |
| method | Yes | Method name to invoke | |
| args | No | Method arguments as JSON array | |
| ctorArgs | No | Constructor arguments for instance methods | |
| debug | No | Launch under debugger for breakpoint support | |
| cwd | No | Working directory for the invocation | |
| sessionId | No | Session ID for debug mode (auto-generated if not specified) |