Rename many clips with a pattern
rename_clipsRename multiple Premiere Pro timeline clips at once using placeholders such as {n} or {name}, targeting specific clip IDs, filtered clips, or all clips.
Instructions
Rename several timeline clips with a pattern such as "Shot {n}". Targets: clip_ids (numbered in the given order), or every clip matching the filter arguments (numbered in timeline order: by start time, then video before audio, then track), or all=true. Placeholders: {n} running number, {name} current clip name, {source} project item name, {track} track label such as V1 or A2, {index} 0-based position in its track. Linked clips are not renamed unless they are targets too (rename_clip renames them). Returns renamed_count and each clip with previous_name and name.
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": {
"pattern": "<pattern>"
},
"name": "rename_clips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | true = target every clip in the sequence; needed when neither clip_ids nor a filter is given. Default false. | |
| match | No | How name_pattern is compared with the clip name. "contains" (default): substring. "exact": whole name. "wildcard": * = any text, ? = one character, whole name. "regex": a regular expression. | |
| mogrt | No | true: only Motion Graphics Template clips. false: exclude them. Omit: both. | |
| item_id | No | Only clips made from the project item with this id. | |
| padding | No | Minimum digits of {n}, zero-padded (3 gives 001). Default 1. | |
| pattern | Yes | New name pattern, e.g. "Shot {n}" or "{track} - {name}". Must not produce an empty name. | |
| clip_ids | No | Exact clips to rename, in numbering order. When given, the filter arguments and all are ignored. | |
| disabled | No | true: only disabled clips. false: only enabled clips. Omit: both. | |
| selected | No | true: only selected clips. false: only unselected clips. Omit: both. | |
| range_end | No | Only clips that start before this sequence time, in seconds. Must be greater than range_start. | |
| media_path | No | Only clips whose source media file path contains this text (case-insensitive, slashes normalised). | |
| track_type | No | Only clips on "video" or on "audio" tracks. Default: both. | |
| range_start | No | Only clips that end after this sequence time, in seconds. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | Only clips on this 0-based track (0 = V1 or A1). Needs track_type. | |
| max_duration | No | Only clips at most this long on the timeline, in seconds. | |
| min_duration | No | Only clips at least this long on the timeline, in seconds. | |
| name_pattern | No | Only clips whose timeline name matches this pattern (see match). Omit: any name. | |
| start_number | No | First value of {n}. Default 1. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| case_sensitive | No | Compare names case-sensitively. Default false. | |
| adjustment_layer | No | true: only adjustment layers. false: exclude them. Omit: both. |