roslyn:get_instantiation_options
Discover all instantiation options for any C# type: constructors, static factory methods, and builder patterns, including signatures and lifecycle hints.
Instructions
Get all ways to create an instance of a type: constructors, factory methods, and builder patterns.
USAGE: get_instantiation_options(typeName="HttpClient") OUTPUT: List of constructors with signatures, static factory methods, and hints (e.g., "implements IDisposable").
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": {
"typeName": "<typeName>"
},
"name": "roslyn:get_instantiation_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | The type name to check (e.g., 'HttpClient') |