[analysis]
Gets detailed information about a method signature (parameters, return type, docs, and location).
Try this tool in Playground.
| Name | Type | Required | Description |
|---|---|---|---|
| methodName | string | Yes | Method name to analyze. |
| containingTypeName | string | No | Optional containing type name filter. |
| projectName | string | No | Optional project name filter. |
| timeout_ms | number | No | Timeout in milliseconds (5 minutes). Use 0 to disable. Default is 300000. |
Get method signature
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_method_signature",
"arguments": {
"methodName": "GetUserById"
}
}
}{
"success": true,
"data": {
"name": "LoadSolutionAsync",
"returnType": "Task",
"containingType": "ISolutionManager",
"filePath": "/path/to/SolutionManager.cs",
"lineNumber": 58,
"parameters": [
{
"name": "solutionPath",
"type": "string",
"defaultValue": null,
"modifiers": []
}
]
},
"error": null
}Returns method signature with parameters