removeMedia
Remove a media asset from a project without deleting the file on disk. First remove its timeline clips and audio tracks, or the operation is refused.
Instructions
Remove a file from the project's media. Refused while the timeline still uses it: remove its clips (removeClip) and its audio tracks (removeModifier) first. The file on disk is left alone.
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": {
"assetId": "<assetId>"
},
"name": "removeMedia"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | The asset to remove, from getCurrentDocument's assets. | |
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. |