Replace a clip's XMP
set_item_xmpReplaces the entire XMP packet of a Premiere Pro project item with XML you supply, validating it first and rejecting invalid packets. Use it to write metadata back into the media file on disk.
Instructions
Replace the whole XMP packet of a project item with the XML you pass (start from get_item_xmp with a large max_length). The packet is parsed first and rejected with BAD_ARGS when it is not an XMP packet. Premiere writes XMP back into the media file on disk for formats that support it. To change one value use set_item_xmp_property.
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": {
"xmp": "<xmp>"
},
"name": "set_item_xmp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xmp | Yes | Complete XMP packet as XML text. | |
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". |