export_midi
Converts a project into a standard multi-track MIDI file and preview JSON for frontend audition; enforces audit-pass checks by default to prevent exporting conflicting scores.
Instructions
将工程编译为标准多轨 .mid 文件并输出前端试听 .preview.json。
Args: project_id: 目标工程 ID。 output_dir: 导出目录(相对于工作区根目录),默认 "output"。 filename: 可选输出文件前缀(不含扩展名)。 require_audit_pass: 是否强制要求最近一次审计通过(无 error 冲突),默认 True。
Returns: 导出文件路径与轨道统计信息;若审计未通过且 require_audit_pass=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": {
"project_id": "<project_id>"
},
"name": "export_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| output_dir | No | output | |
| project_id | Yes | ||
| require_audit_pass | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||