samply focus functions
samply_focus_functionsIdentify sample contexts around a target function or namespace with the highest sample counts, counting each sample once by its deepest matching frame.
Instructions
Find the hottest sample contexts around a target function or namespace. Each matching sample is counted once using its deepest matching frame.
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": {
"query": "<query>"
},
"name": "samply_focus_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Case-insensitive function / namespace substring to focus on. | |
| thread | No | Optional thread index or name filter. | |
| afterDepth | No | How many descendant frames to include after the match. | |
| maxMatches | No | Maximum number of matching functions to return. | |
| maxThreads | No | Maximum number of matching threads to return. | |
| beforeDepth | No | How many ancestor frames to include before the match. | |
| maxContexts | No | Maximum number of caller/callee/context entries to return. | |
| profilePath | No | Path to a profile JSON or JSON.GZ file. | |
| resourceQuery | No | Optional case-insensitive resource / library name filter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| matches | Yes | ||
| threads | Yes | ||
| topCallees | Yes | ||
| topCallers | Yes | ||
| profilePath | Yes | ||
| sidecarPath | Yes | ||
| topContexts | Yes | ||
| resourceQuery | Yes | ||
| presymbolicated | Yes | ||
| totalMatchedSamples | Yes | ||
| matchedFunctionCount | Yes |