[external]
Finds source usages of symbols that come from a referenced external assembly, keyed by assembly name or full metadata reference identity.
Try this tool in Playground.
| Name | Type | Required | Description |
|---|---|---|---|
| assemblyName | string | No | Optional simple assembly name to analyze. Provide this or referenceIdentity. |
| referenceIdentity | string | No | Optional full metadata reference identity. Provide this or assemblyName. |
| projectName | string | No | Optional project name filter. |
| pathStyle | string | No | Path style: 'absolute' (default) or 'relative' (to solution root). |
| symbolsSkip | number | No | Symbol-summary pagination offset. Default is 0. |
| symbolsTake | number | No | Symbol-summary pagination size. Default is 200. |
| filesSkip | number | No | File-summary pagination offset. Default is 0. |
| filesTake | number | No | File-summary pagination size. Default is 200. |
| maxExampleLocations | number | No | Maximum sample locations or symbols to include per summary item. Default is 5. Use 0 to omit examples. |
Analyze usages by assembly name
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_external_dependency_usages",
"arguments": {
"assemblyName": "System.Text.Json"
}
}
}{
"success": true,
"data": {
"assemblyName": "System.Text.Json",
"projectSummaryCount": 1,
"fileSummaryCount": 2,
"symbolSummaryCount": 3,
"projects": [
{
"projectName": "MyApp",
"usageCount": 6
}
],
"files": [
{
"filePath": "/path/to/JsonService.cs",
"usageCount": 4
}
],
"symbols": [
{
"symbolName": "JsonSerializer.Serialize",
"usageCount": 3,
"exampleLocations": [
{
"filePath": "/path/to/JsonService.cs",
"lineNumber": 27
}
]
}
]
},
"error": null
}Analyze usages by full metadata identity
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_external_dependency_usages",
"arguments": {
"referenceIdentity": "System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"
}
}
}{
"success": true,
"data": {
"assemblyName": "System.Text.Json",
"projectSummaryCount": 1,
"fileSummaryCount": 2,
"symbolSummaryCount": 3,
"projects": [
{
"projectName": "MyApp",
"usageCount": 6
}
],
"files": [
{
"filePath": "/path/to/JsonService.cs",
"usageCount": 4
}
],
"symbols": [
{
"symbolName": "JsonSerializer.Serialize",
"usageCount": 3,
"exampleLocations": [
{
"filePath": "/path/to/JsonService.cs",
"lineNumber": 27
}
]
}
]
},
"error": null
}Returns project, file, and symbol summaries for a referenced external assembly