visualize_system
Visualize the entire lines-loops-vibes system to understand strategic flows, iterative loops, and energy states within the LLV Helix Framework.
Instructions
Visualize the entire lines-loops-vibes system
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show_rhythms | No | Show rhythm patterns | |
| time_window | No | Time window to visualize (in beats) |
Implementation Reference
- index.js:812-863 (handler)Main handler function that constructs a textual visualization of the entire system state (lines, loops, vibes) and optionally appends system rhythm visualization.visualizeSystem(args) { const { show_rhythms = true, time_window = 16 } = args; const lines = Array.from(this.lines.values()); const loops = Array.from(this.loops.values()); const vibes = Array.from(this.vibes.values()); let visualization = 'π¨ LINES-LOOPS-VIBES SYSTEM\n\n'; if (lines.length > 0) { visualization += 'γ°οΈ LINES:\n'; lines.forEach(line => { visualization += ` ${line.name}: ${line.from} β ${line.to}`; if (show_rhythms) visualization += ` [${line.rhythm}]`; visualization += '\n'; }); visualization += '\n'; } if (loops.length > 0) { visualization += 'π LOOPS:\n'; loops.forEach(loop => { visualization += ` ${loop.name}: ${loop.type}`; if (show_rhythms) visualization += ` [${loop.rhythm}]`; visualization += ` (${loop.iterations.length} iterations)\n`; }); visualization += '\n'; } if (vibes.length > 0) { visualization += 'β¨ VIBES:\n'; vibes.forEach(vibe => { visualization += ` ${vibe.name}: ${vibe.energy} @ ${vibe.frequency}Hz`; if (show_rhythms) visualization += ` [${vibe.rhythm}]`; visualization += '\n'; }); visualization += '\n'; } if (show_rhythms) { visualization += this.visualizeSystemRhythm(time_window); } return { content: [ { type: 'text', text: visualization, }, ], }; }
- index.js:275-292 (schema)Tool schema definition including input parameters show_rhythms (boolean, default true) and time_window (number).{ name: 'visualize_system', description: 'Visualize the entire lines-loops-vibes system', inputSchema: { type: 'object', properties: { show_rhythms: { type: 'boolean', description: 'Show rhythm patterns', default: true, }, time_window: { type: 'number', description: 'Time window to visualize (in beats)', }, }, }, },
- index.js:349-350 (registration)Dispatch registration in the CallToolRequestHandler switch statement that calls the visualizeSystem handler.case 'visualize_system': return this.visualizeSystem(args);
- index.js:1040-1055 (helper)Helper function called by the handler to generate a ASCII art rhythm visualization for the system over the specified time window.visualizeSystemRhythm(timeWindow) { let rhythm = 'π΅ SYSTEM RHYTHM (next ' + timeWindow + ' beats):\n'; rhythm += 'β' + 'β'.repeat(timeWindow * 2) + 'β\n'; const types = ['Lines', 'Loops', 'Vibes']; types.forEach(type => { rhythm += 'β'; for (let i = 0; i < timeWindow; i++) { rhythm += i % 4 === 0 ? 'β ' : 'β '; } rhythm += 'β ' + type + '\n'; }); rhythm += 'β' + 'β'.repeat(timeWindow * 2) + 'β\n'; return rhythm; }