[search]
Finds types by name pattern with wildcard support. Use '*' to match any characters and '?' to match a single character. Returns type names, kinds, file paths, and line numbers.
| Name | Type | Required | Description |
|---|---|---|---|
| pattern | string | Yes | The search pattern. Supports wildcards: '*' matches any characters (e.g., '*Manager'), '?' matches a single character (e.g., 'I?Service'). |
| projectName | string | No | Optional project name to limit the search scope. |
Find all service types
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_types",
"arguments": {
"pattern": "*Service"
}
}
}{
"success": true,
"data": {
"pattern": "*Service",
"matchCount": 2,
"matches": [
{
"typeName": "UserService",
"fullName": "MyApp.Services.UserService",
"kind": "Class",
"accessibility": "Public",
"filePath": "/path/to/UserService.cs",
"lineNumber": 12,
"projectName": "MyApp"
}
]
},
"error": null
}Find interfaces starting with I
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_types",
"arguments": {
"pattern": "I*"
}
}
}{
"success": true,
"data": {
"pattern": "*Service",
"matchCount": 2,
"matches": [
{
"typeName": "UserService",
"fullName": "MyApp.Services.UserService",
"kind": "Class",
"accessibility": "Public",
"filePath": "/path/to/UserService.cs",
"lineNumber": 12,
"projectName": "MyApp"
}
]
},
"error": null
}Find types in specific project
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_types",
"arguments": {
"pattern": "*Repository",
"projectName": "DataLayer"
}
}
}{
"success": true,
"data": {
"pattern": "*Service",
"matchCount": 2,
"matches": [
{
"typeName": "UserService",
"fullName": "MyApp.Services.UserService",
"kind": "Class",
"accessibility": "Public",
"filePath": "/path/to/UserService.cs",
"lineNumber": 12,
"projectName": "MyApp"
}
]
},
"error": null
}Returns list of matching types with names, kinds, paths, and line numbers
Go to Playground to test this tool interactively.