samply locate symbols
samply_locate_symbolsMap native stack symbols to likely source files across local code roots so agents can inspect implementation after hotspot analysis.
Instructions
Map native stack symbols back to likely source files in one or more local code roots. This is useful after hotspot analysis when an agent needs to inspect the implementation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"roots": "<roots>",
"symbols": "<symbols>"
},
"name": "samply_locate_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roots | Yes | One or more local source roots to search. | |
| symbols | Yes | One or more stack symbols or function display names to map back to source. | |
| extensions | No | Optional file extensions to include, for example ['.rs', '.ts']. | |
| maxHitsPerFile | No | Maximum number of line hits to keep for each candidate file. | |
| maxFilesPerSymbol | No | Maximum number of candidate files to return per symbol. | |
| maxFilesToScanPerRoot | No | Maximum number of files to scan under each root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roots | Yes | ||
| symbols | Yes | ||
| scannedFileCount | Yes |