Set lyrics on existing notes
set_lyricsRewrite lyrics of existing notes starting at a chosen index while keeping their positions and pitches unchanged. Use it to replace or correct lyrics note-by-note without altering the melody.
Instructions
Change the lyrics of existing notes in order from start_index; positions and pitches stay. Give text (split per note) or lyrics (exact, one per note). Use add_melody to create new notes with lyrics; split_lyrics previews a split. Returns lyrics, warnings, changed, first. / 既存の音符の歌詞を start_index から順に書き換えます(位置・音高は そのまま)。text(分割)か lyrics(そのまま)を指定。新しい音符は add_melody。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"part": "<part>"
},
"name": "set_lyrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | Yes | Voice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える) | |
| path | No | A .ustx file to edit directly (OpenUtau may be closed). Omit to use the project open in OpenUtau (needs the bridge). / 直接編集する .ustx ファイル(OpenUtau は閉じていて可)。省略で OpenUtau のプロジェクト | |
| text | No | Lyrics text, split into one lyric per note like add_melody, e.g. "ゆうやけ こやけ". / 分割する歌詞テキスト | |
| lyrics | No | Exact lyrics, one per note, written as given (no splitting), e.g. ["la", "+", "a"]. / そのまま書く歌詞 | |
| language | No | Lyric language: "auto" (default, detected), "ja" or "en". / 歌詞の言語(auto / ja / en) | auto |
| start_index | No | Index of the first note to change. / 最初に変える音符の番号 |