Source Code
Suno Skill
This skill allows the agent to control Suno (suno.com) via the OpenClaw Managed Browser to generate music.
Prerequisites
- OpenClaw Browser: Must be running (
openclaw browser start). - Login: The user must be logged into Suno on the managed browser profile (
openclaw).
Usage
- Open Suno:
browser open https://suno.com/create - Snapshot:
browser snapshot(to get element refs). - Input Lyrics:
browser act type <ref> "Your lyrics..." - Input Style:
browser act type <ref> "Style description..." - Set Title:
browser act type <ref> "Song Title" - Create:
browser act click <create_button_ref> - Wait & Play: Wait for the song to appear in the list, then
browser act click <play_button_ref>.
Example (Agent Thought Process)
browser action=start profile=openclawbrowser action=open profile=openclaw url=https://suno.com/create- (User logs in manually if not already)
browser action=snapshot-> Identify lyric box (e.g.,e1953), style box (e1976), title (e2104), create button (e299).browser action=act kind=type ref=e1953 text="..."browser action=act kind=click ref=e299browser action=snapshot-> Find new song row and play button (e2172).browser action=act kind=click ref=e2172
Notes
- Refs change: Element references (
e123) change on every snapshot. Always snapshot before acting. - v5 Model: Ensure v5 is selected for best quality.
- Custom Mode: Switch to "Custom" mode to enter specific lyrics.