cubase_event_edit
Move or trim one existing audio event or MIDI part in place, validating expected type, name, start and duration, and returning confirmed before/after values.
Instructions
Move or trim one existing audio event or MIDI part in place through IProjectObject/MEditContext, without selection commands or reimport. Copy root, path and expected type/name/startSeconds/durationSeconds from cubase_events_list. The native side re-enumerates and rejects any mismatch or locked/track target. field=position sets absolute project seconds; field=duration sets seconds (audio is trimmed, not stretched beyond its current length). Returns before/after from host getters and confirmed; the source file is untouched. Native undo integration is not certified. Stop transport first; never repeated automatically.
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": {
"session": "<session>",
"root": "<root>",
"path": "<path>",
"expected": "<expected>",
"field": "<field>",
"seconds": "<seconds>",
"confirmEdit": "<confirmEdit>"
},
"name": "cubase_event_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| root | Yes | ||
| field | Yes | ||
| seconds | Yes | ||
| session | Yes | ||
| expected | Yes | ||
| confirmEdit | Yes |