Query the snapshot index
snapshot_queryFilter snapshots by layer, kind, path regex, or symbol to return matching files with part, line count, and token estimates before context or read calls.
Instructions
Filter the snapshot by layer, kind, a path regular expression or a symbol name, and return the matching files with their part, line count and token estimate. Use it to find a starting set before snapshot_context or snapshot_read. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "snapshot_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Exact kind, e.g. source, test, config. | |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| layer | No | Exact layer name, e.g. src or test. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| symbol | No | Case-insensitive substring of an exported symbol. | |
| maxFiles | No | Cap on returned files (default 40). | |
| pathPattern | No | Regular expression matched against the path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| matched | No | ||
| returned | No |