logicstamp_list_bundles
Lists all root bundles from the codebase context, returning component names, file paths, and token estimates to identify components for detailed contract inspection.
Instructions
⚠️ CRITICAL: Do NOT use sleep() delays before calling this tool. When watch mode is active, bundles are already fresh - call this tool directly without any waiting. Lists all ROOT bundles from context_main.json. Returns bundle catalog (component names, file paths, bundle paths, token estimates). IMPORTANT: LogicStamp organizes components into ROOT components (have their own bundles, listed here) and DEPENDENCIES (included in importing root's bundle.graph.nodes[], not listed here). If a component isn't in this list, it's a dependency - find which root imports it, then read that root's bundle to see the dependency contract in bundle.graph.nodes[]. Use bundle paths in read_bundle to get component contracts. Watch mode: Use projectPath directly (no snapshotId needed). Filter: folderPrefix="src/components" to filter by directory. Next: read_bundle(snapshotId|projectPath, bundlePath). The tool handles race conditions internally - no external sleep() delays needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshotId | No | Snapshot ID from logicstamp_refresh_snapshot. Optional if watch mode is active - use projectPath instead for direct access. | |
| projectPath | No | Absolute path to project root. Use this instead of snapshotId when watch mode is active for instant access to fresh context. | |
| folderPrefix | No | Filter bundles by folder path prefix (optional, e.g., "src/components" to see only that folder) |