Update voice part
update_partRename, reposition, resize, or move a voice part between tracks in an OpenUtau project. Set fit_to_notes=true to trim or extend it to the bar line after its last note.
Instructions
Rename, move (position, track) or resize a voice part; fit_to_notes=true trims or extends it to the first bar line after its last note. Notes keep their part-relative positions. Returns the part's new values (live: project summary). Use remove_part to delete it. / ボイスパートの名前変更・移動・長さ変更。fit_to_notes=true で最後の音符の 後の小節線に合わせます。音符の相対位置は変わりません。
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": "update_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New part name. / 新しいパート名 | |
| 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 のプロジェクト | |
| track | No | Move the part to this track index. / 移動先のトラック番号 | |
| duration | No | New length in ticks. / 新しい長さ(ティック) | |
| position | No | New start tick in the song. / 新しい開始ティック | |
| fit_to_notes | No | true sets the length to end on the first bar line after the last note (instead of duration). / true で最後の音符の後の最初の小節線までの長さに |