get_method_signature

[analysis]

Gets detailed information about a method signature including parameters, return type, and documentation.

Parameters

NameTypeRequiredDescription
methodNamestringYesThe name of the method to analyze.
containingTypeNamestringNoOptional containing type name to limit the search scope.
projectNamestringNoOptional project name to limit the search scope.

Examples

Get method signature

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_method_signature",
    "arguments": {
      "methodName": "GetUserById"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "name": "LoadSolutionAsync",
    "returnType": "Task",
    "containingType": "ISolutionManager",
    "parameters": [
      {
        "name": "solutionPath",
        "type": "string",
        "defaultValue": null,
        "modifiers": []
      }
    ]
  },
  "error": null
}

Get method from specific type

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_method_signature",
    "arguments": {
      "methodName": "Save",
      "containingTypeName": "UserRepository"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "name": "LoadSolutionAsync",
    "returnType": "Task",
    "containingType": "ISolutionManager",
    "parameters": [
      {
        "name": "solutionPath",
        "type": "string",
        "defaultValue": null,
        "modifiers": []
      }
    ]
  },
  "error": null
}

Response

Returns method signature with parameters, return type, and documentation

Go to Playground to test this tool interactively.