get_symbol_definition
Look up the exact definition location of a function, class, or symbol by name and directory, returning file path, line number, and signature.
Instructions
Instantly find where a function, class, or symbol is defined (O(1) lookup).
Much faster than semantic search when you know the exact symbol name.
Args:
name: The exact name of the function/class/variable
directory: Path to the codebase directory
Returns:
Definition location(s) with file path, line number, and signature
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": {
"name": "<name>",
"directory": "<directory>"
},
"name": "get_symbol_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |