Register Segment
register_segmentSaves a recorded session as a named, reusable flow segment by computing a fingerprint from its correlated steps, enabling efficient deduplication and reuse.
Instructions
Register a recorded session as a named, reusable flow segment. Computes a fingerprint from the correlated steps and saves it to the segment registry for future deduplication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable segment name (e.g., "login", "navigate-to-settings") | |
| sessionId | Yes | Session ID whose correlated steps define this segment | |
| registryPath | No | Path to registry.json (defaults to ./segments/registry.json) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Registered segment name | |
| message | Yes | Human-readable confirmation message | |
| fingerprint | Yes | Segment fingerprint | |
| registryPath | Yes | Path to the registry file |