Find where a symbol is defined
find_definitionLocate the exact file and line where a function, method, or class is defined by name in a TypeScript or JavaScript codebase.
Instructions
Find the file and line where a function, method, or class is defined, by name.
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>"
},
"name": "find_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name, e.g. 'createUser' or 'UserRepository.findById' | |
| graph_path | No | Path to a previously saved graph (default: .codegraph/graph.json) |