Preview a snapshot
snapshot_planPreview a repository snapshot without writing files: see file and part counts, exclusion reasons, and pick a part budget before generation.
Instructions
Preview a snapshot without writing anything: how many files and parts it would contain, and why every excluded file was excluded. Use it to choose a part budget before generating.
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_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Globs to include: replaces the config allow-list for this run. | |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| sarif | No | Also write reports/audit.sarif beside reports/audit.md, for CI code scanning. | |
| ignore | No | Globs to exclude, added to the config deny-list for this run. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| staged | No | Only files staged in the git index. | |
| skeleton | No | Replace every function body with `{ /* ... */ }`, keeping signatures, imports and exports. Applies to TypeScript, JavaScript and JSX. | |
| changedSince | No | Only files changed since this git ref, for example "main" or "HEAD~3". | |
| maxPartBytes | No | Byte budget per part, for example 307200 or "300k". Defaults to the project configuration. | |
| maxPartTokens | No | Token ceiling per part, for example 32000 or "32k". Narrower than maxPartBytes; it converts at four bytes per token. | |
| withDependents | No | With staged or changedSince, also include the files that import the changed ones (one hop). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| parts | No | ||
| preset | No | ||
| skipped | No | ||
| sourceBytes | No | ||
| emittedBytes | No |