Get Symbol Signature
symbol_signatureRetrieve a C# symbol's declaration signature, XML summary, declaring file and start line without its body to understand an API and navigate to it; supports exact names, overloads and partial types.
Instructions
Return a symbol's signature(s) WITHOUT the body: the type declaration, the method/operator signature or a member's declaration (property, field, event, enum member - the last as its qualified Enum.Member form), plus its XML doc and its declaring file + start line - to understand an API without reading the body, and to navigate to it. 'file' is the fragment's OWN file (a partial type's method: the METHOD's, not the first fragment's), solution-relative as in find_usages; it is omitted only when the snapshot carries no path. A declaration a source generator wrote adds 'generated', its generated document's label; its 'file' is that label's path, not on disk. 'line' is where the declaration starts, a leading attribute included; it is null for an enum member and a source-generated property (no line fact is modeled for them). Exact (case-sensitive) name match; multiple results for overloads or name collisions; one declaration compiled in two projects, or one type a generator wrote into each, is two results, each with its 'project'. A member also takes 'Type.Member' (that type's only, else a 'note' names its owners), a type a qualified name ('Ns.Type', 'Outer.Inner') and a constructor 'Type.Type' (kind 'constructor', each declared overload; a primary constructor's line is null, a record's is not listed; on a type that declares none the list is empty and a 'note' says which constructor the type has implicitly, with no 'nearest'). A user-defined operator matches by its METADATA name ('op_Equality', 'op_Implicit'). Returns a capped envelope (items/count/totalFound/truncated), max 50. Matching is EXACT: a typo or case-mismatch returns an empty list (not an error) that carries 'nearest' (the closest declared name: you spelled it differently) and, where the run skipped generated C# under obj/, a 'generatedSourcesNote' (the declaration exists in code this index never read).
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": {
"sessionId": "<sessionId>",
"symbol": "<symbol>"
},
"name": "symbol_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | The exact (case-sensitive) type, method, property, field, event, enum-member or operator name (e.g. 'op_Equality'), bare or qualified ('Type.Member', 'Ns.Type'), or 'Type.Type' for a type's constructors. | |
| sessionId | Yes | The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use. |