generate_snapshot_batch
Returns a batch of source files with skeletons and deeper reads, plus a prompt to derive features and flows. Repeat with nextOffset until concept-map build is complete.
Instructions
Map step of the concept-map build. Returns one batch of source files (skeletons of every file in the batch plus a few deeper-read bodies for grounding), along with a system prompt instructing you to derive features and flows for ONLY this batch. Call repeatedly with the returned nextOffset until it is null, calling save_partial_snapshot between each call. Use product-natural feature names so partials merge cleanly in the reduce step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Absolute path to the project root directory | |
| files | No | Scope the batch walk to this explicit file list — e.g. the drift set from mason_check_drift (changedFiles + unmappedFiles). Pass the SAME list on every batch call of one refresh run. Triggers refresh mode: reduce_snapshot will merge the partials into the existing map instead of rebuilding it. | |
| offset | No | 0-indexed file offset to start the batch at. Omit on the first call; pass the `nextOffset` from the previous response for subsequent calls. | |
| batchSize | No | Files per batch. Defaults to 50. |