reflection-method-call

Invoke C# methods at runtime via reflection using a method schema.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill reflection-method-call-igot-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reflection-method-call
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/game-engineer/develop-unity-ui/references/reflection-method-call
Command: npx skills add https://github.com/igot-ai/os-twin --skill reflection-method-call-igot-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Call C# methods using reflection with a proper schema, enabling dynamic access to public, private, static, or instance methods without code changes.

Core Features & Use Cases

  • Dynamic method invocation by providing a method schema
  • Works with static and instance methods across types and assemblies
  • Find-then-call workflow (using reflection-method-find) to discover available methods before invocation
  • Returns results in a structured serialized format

Quick Start

Provide a valid method schema and call reflection-method-call to execute the target method.

Frequently Asked Questions about reflection-method-call

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call private or public C# methods dynamically at runtime?

You can dynamically invoke C# methods at runtime using reflection by providing a method schema. This supports accessing public, private, static, and instance methods across .NET assemblies without modifying existing code.

What is the best way to invoke arbitrary .NET methods for testing and debugging?

Invoking arbitrary .NET methods via reflection is effective for testing, debugging, and automation. You provide a known method signature as a schema, and the tool enforces input parameters and returns serialized results for inspection.

Do I need to know the method signature before calling a C# method via reflection?

Yes, a known method signature is required to enforce the input parameter schema during dynamic invocation. For unknown assemblies, use a find-then-call workflow to discover available methods before executing the target method.

Can I use dynamic method invocation across different types and assemblies in .NET?

Yes, dynamic method invocation via reflection works with static and instance methods across different types and .NET assemblies. It validates the provided schema and returns the output in a structured serialized format.

How do I discover available methods in a .NET assembly before dynamic invocation?

To discover available methods before dynamic invocation, use a find-then-call workflow. This allows you to inspect the .NET assembly, identify the target method schema, and then execute the call with the correct parameters.