set_format
Change a composition's size using a named format or pixel width and height, or set frame rate from 1 to 120. Elements keep their pixel positions and timing, so move them for the new frame.
Instructions
Change a composition's size (a named format, or width and height in pixels; orientation turns it) or frame rate (1 to 120). Times stay in seconds, so elements keep their length; frames are counted at the new rate. Elements keep their pixel positions: move them for the new frame.
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": {
"composition": "<composition>"
},
"name": "set_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second, any from 1 to 120 (24, 25, 30, 50, 60 are common; 23.976 and 29.97 too) | |
| basis | No | What you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it. | |
| width | No | Pixels; even | |
| format | No | A named size: 720p = 16:9 HD 1280×720; 1080p = 16:9 Full HD 1920×1080; 2k = 16:9 2K 2560×1440; 4k = 16:9 4K UHD 3840×2160; vertical = 9:16 vertical 1080×1920 (short video); vertical-2k = 9:16 vertical 2K 1440×2560; vertical-4k = 9:16 vertical 4K 2160×3840; square = 1:1 square 1080×1080; portrait = 4:5 portrait 1080×1350 (feed post); 4:3 = 4:3 1440×1080. width / height given too win. | |
| height | No | Pixels; even | |
| message | No | One line saying why, kept with the change in the history | |
| feedback | No | Ids of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again. | |
| confidence | No | How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change. | |
| composition | Yes | Composition name (file in compositions/ without .json) | |
| orientation | No | Turn the size so it is wider (landscape) or taller (portrait) |