Package-level declarations

Types

Link copied to clipboard

Stops any ongoing vibration started by this app (e.g. a looping vibrate_pattern with repeat >= 0) via android.os.Vibrator.cancel, and clears the pending auto-cancel from RepeatingVibrationWatchdog. Only affects this app's own vibrations. Requires VIBRATE.

Link copied to clipboard

Plays a waveform vibration from timings — alternating OFF/ON durations in ms, starting with OFF (timings[0] is a delay before the first vibration; matches VibrationEffect.createWaveform/legacy Vibrator.vibrate(long[], int) semantics exactly). Any non-empty length is valid — there is no even/odd requirement. Every entry must be a non-negative number (non-numeric entries are rejected, not dropped); each entry is capped at MAX_TIMING_MS and the whole pattern must total at most MAX_PATTERN_MS.

Link copied to clipboard
class VibrateTool(context: Context) : McpTool

Triggers a one-shot vibration for duration_ms (1-10000, clamped). Optional amplitude (1-255) is only honored on API 26+; on older devices the duration vibrates at the system default. Requires VIBRATE.

Link copied to clipboard

Provider for vibration tools: VibrateTool, VibratePatternTool and CancelVibrationTool (stops a looping pattern early). Requires the VIBRATE permission (a normal install-time permission).