transpose_by_key
Transpose a music score to a target major key using MuseScore CLI. Specify direction (up, down, or closest) to adjust the key signature.
Instructions
Transpose a score to a target key using the MuseScore CLI.
Requires MuseScore 3.3+ with --score-transpose support.
Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". target_key: Target major key — C G D A E B F# C# F Bb Eb Ab Db Gb Cb. direction: "up", "down", or "closest" (default).
Returns: Base64-encoded mscz of the transposed score.
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": {
"score_b64": "<score_b64>",
"input_suffix": "<input_suffix>",
"target_key": "<target_key>"
},
"name": "transpose_by_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score_b64 | Yes | ||
| input_suffix | Yes | ||
| target_key | Yes | ||
| direction | No | closest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |