Find a symbol definition
snapshot_symbolLocate where a function, class, interface, type or constant is defined in a codebase snapshot and return a numbered window around it, optionally listing call sites across files.
Instructions
Find where a function, class, interface, type or constant is defined in the snapshot and return a window around the definition with line numbers. Searches the emitted parts, so redaction still applies. Read-only.
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": "snapshot_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name, case-insensitive. | |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| lines | No | Window size around the definition (default 40). | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| maxFiles | No | Cap on files searched (default 5). | |
| references | No | Also report call sites: other files whose body mentions the name (default true). | |
| maxReferences | No | Cap on reported call sites (default 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | No | ||
| matches | No | ||
| references | No |