find_symbol
Search for symbol definitions (functions, classes, variables) in C/C++ files with regex support.
Instructions
Search for a symbol (function, class, variable) definition across C/C++ files.
Args: symbol: Symbol name to search for (supports regex). directory: Directory to search in. extensions: Comma-separated file extensions to search.
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": {
"symbol": "<symbol>"
},
"name": "find_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| directory | No | src | |
| extensions | No | .cpp,.h,.hpp,.c |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |