Get one symbol implementation
ast_get_symbol_sourceRetrieve the exact declaration or implementation for a symbol path, returning its project-relative location instead of the full file.
Instructions
Returns exactly one declaration or implementation with its project-relative location, not the complete file.
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": {
"project_root": "<project_root>",
"file_path": "<file_path>",
"symbol_path": "<symbol_path>"
},
"name": "ast_get_symbol_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Project-relative or absolute source file path. | |
| symbol_path | Yes | Symbol path such as "formatDate" or "UserService.create". | |
| project_root | Yes | Absolute project directory containing tsconfig.json, or the config path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| text | Yes | ||
| endLine | Yes | ||
| startLine | Yes |