get_method_source
Retrieve the full declaration source code of .NET members by name, including XML docs and attributes. Supports batch queries for methods, constructors, properties, indexers, fields, and events.
Instructions
Return the full declaration source (XML docs, attributes, signature, body — original formatting) of one or more members by name: methods (all overloads returned), constructors (request as Widget.Widget or fully qualified Ns.Widget.Widget; nested types need full qualification), properties, indexers (request as Type.this or Type.this[]), fields, events. Batch-friendly: pass many names in one call instead of reading whole files. Per-item statuses: ok, notFound, ambiguous (with candidates), metadata (use peek_il or inspect_external_assembly), unsupportedKind (whole types — use get_type_overview). Items keep request order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (default: 100) | |
| symbols | Yes | Member names: simple (`MyClass.MyMethod`) or fully qualified (`Ns.MyClass.MyMethod`) |