pulse_vibe
Send a pulse through a vibe to modulate its energy state. Specify amplitude and duration to shape the vibe's intensity over time.
Instructions
Send a pulse through a vibe
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vibe_name | Yes | Name of the vibe | |
| amplitude | No | Pulse amplitude (0-1) | |
| duration | No | Pulse duration in beats |
Implementation Reference
- index.js:647-681 (handler)The pulseVibe function that executes the pulse_vibe tool logic. It looks up the vibe by name, creates a pulse with amplitude/duration/frequency, stores it, and returns a formatted result.
pulseVibe(args) { const { vibe_name, amplitude = 0.5, duration = 1 } = args; const vibe = this.vibes.get(vibe_name); if (!vibe) { return { content: [ { type: 'text', text: `❌ Vibe "${vibe_name}" not found.`, }, ], }; } const rhythm = this.rhythms.get(`vibe_${vibe_name}`); const pulse = { timestamp: new Date().toISOString(), amplitude, duration, frequency: vibe.frequency, rhythmStep: rhythm ? rhythm.next() : 1, }; vibe.pulses.push(pulse); return { content: [ { type: 'text', text: `✨ Pulsing vibe "${vibe_name}"\n\nEnergy: ${vibe.energy}\nAmplitude: ${(amplitude * 100).toFixed(0)}%\nDuration: ${duration} beats\n\n${this.visualizePulse(amplitude, vibe.frequency)}\n\nRhythm: ${vibe.rhythm} @ ${pulse.rhythmStep}`, }, ], }; } - index.js:198-219 (schema)The schema/definition for the pulse_vibe tool, including its name, description, and input schema with vibe_name (string, required), amplitude (number 0-1, optional), and duration (number, optional) properties.
name: 'pulse_vibe', description: 'Send a pulse through a vibe', inputSchema: { type: 'object', properties: { vibe_name: { type: 'string', description: 'Name of the vibe', }, amplitude: { type: 'number', minimum: 0, maximum: 1, description: 'Pulse amplitude (0-1)', }, duration: { type: 'number', description: 'Pulse duration in beats', }, }, required: ['vibe_name'], }, - index.js:343-344 (registration)The registration/case match that dispatches 'pulse_vibe' requests to the pulseVibe method.
case 'pulse_vibe': return this.pulseVibe(args);