Locate code in the snapshot
snapshot_locateLocate the snapshot section that holds needed code by matching file paths, exported symbols, component names, or routes so only one part is read.
Instructions
Find which part holds the code you need. Matches file paths, exported symbols, component names and routes from the snapshot's index, so one part can be read instead of all of them.
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": {
"query": "<query>"
},
"name": "snapshot_locate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Restrict what is matched. Defaults to every category. | auto |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| limit | No | Maximum matches to return. | |
| query | Yes | Text to match, case-insensitively, against paths and exported symbols. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No |