[search]
Searches for symbols (types and members) by pattern and returns stable symbol keys for follow-up tool calls.
Try this tool in Playground.
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Search pattern. Supports '*' and '?', or plain text for substring match. |
| kinds | string | No | Optional kinds filter (comma-separated): 'Type,Method,Property,Field,Event'. |
| namespaceFilter | string | No | Optional namespace prefix filter (e.g., 'MyApp.Services'). |
| projectName | string | No | Optional project name filter. |
| pathStyle | string | No | Path style: 'absolute' (default) or 'relative' (to solution root). |
| sortBy | string | No | Optional sort: 'name', 'kind', 'filePath', 'projectName', 'namespace'. |
| sortOrder | string | No | Sort order: 'asc' (default) or 'desc'. |
| skip | number | No | Pagination offset. Default is 0. |
| take | number | No | Pagination size. Default is 200. |
| timeout_ms | number | No | Timeout in milliseconds. Use 0 to disable. Default is 30000. |
Search for service types
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_symbols",
"arguments": {
"query": "*Service",
"kinds": "Type"
}
}
}{
"success": true,
"data": {
"query": "*Service",
"matchCount": 2,
"paging": {
"skip": 0,
"take": 200,
"returned": 2,
"total": 2
},
"matches": [
{
"name": "UserService",
"fullName": "MyApp.Services.UserService",
"kind": "Type",
"containingType": null,
"namespace": "MyApp.Services",
"filePath": "/path/to/UserService.cs",
"lineNumber": 12,
"symbolKey": "..."
}
]
},
"error": null
}Search methods containing "Login"
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_symbols",
"arguments": {
"query": "*Login*",
"kinds": "Method"
}
}
}{
"success": true,
"data": {
"query": "*Service",
"matchCount": 2,
"paging": {
"skip": 0,
"take": 200,
"returned": 2,
"total": 2
},
"matches": [
{
"name": "UserService",
"fullName": "MyApp.Services.UserService",
"kind": "Type",
"containingType": null,
"namespace": "MyApp.Services",
"filePath": "/path/to/UserService.cs",
"lineNumber": 12,
"symbolKey": "..."
}
]
},
"error": null
}Returns matching symbols (with paging) including stable symbol keys