360 Secure SkillHub
360 安全技能中心

Lyrics Search

该 Skill 使用公共 LrcApi 接口按歌曲标题和可选歌手查找歌词,返回 LRC 文本;它可去除时间戳及制作人员等元数据,并按适合展示或打印的纯文本格式整理结果。

hone1983
hone1983
热度 64.31
最近更新 2026-05-11 17:26:14
分类:搜索依赖:第三方 API

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add lyrics-search
Metadata
name
lyrics-search
description
Search song lyrics by title and artist using the LrcApi public API. Use when the user asks to find, display, or print lyrics for a song.

Lyrics Search

Search lyrics via the LrcApi public API (api.lrc.cx).

API

GET https://api.lrc.cx/lyrics?title={title}&artist={artist}
  • Returns LRC format (with timestamps) as text/plain
  • artist is optional but improves accuracy
  • URL-encode Chinese/special characters

Usage

  1. Fetch lyrics via web_fetch on the API URL
  2. The response is LRC format with [mm:ss.xxx] timestamps and metadata lines at the top
  3. Strip timestamps and metadata lines (credits, producer info at [00:00]–[00:24]) for clean display
  4. For printing: format as plain text with song title, artist, and credits header

Example

web_fetch("https://api.lrc.cx/lyrics?title=世界赠予我的&artist=王菲")

Notes

  • Public API may be slow; set a reasonable timeout
  • If no results, try with only title (omit artist)
  • If still no results, try alternate song name spellings