variable_xref
Trace a variable's data flow: identify its definitions, reads, and writes in a JavaScript/TypeScript project.
Instructions
Data-flow cross-reference of a variable: where it is defined, read and written (semantic DEFINITION/WRITE/READ classification via ts-morph).
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>",
"symbol": "<symbol>"
},
"name": "variable_xref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name or path of the loaded project | |
| symbol | Yes | Variable name |