SCREENCAST-MCP / TOOLS / EDIT
Scale Video
scale
Resize a video to a target width and/or height and re-encode. Provide one side to keep the aspect ratio, or both to set an exact size.
editwritesdestructivesince v0.3.0
00:00PARAMETERS
| Name | Type | Description |
|---|---|---|
input required | string | Path to the source video. |
width | integer | Target width in px. Omit to derive from height (keeps aspect). > 0, ≤ 9007199254740991 |
height | integer | Target height in px. Omit to derive from width (keeps aspect). > 0, ≤ 9007199254740991 |
output | string | Optional output path. Defaults under SCREENCAST_HOME/edits. |
overwrite | boolean | Allow replacing an existing file at the output path (default false). |
00:05A MINIMAL CALL
scale { "input": "recording.mp4" }
The required arguments only, with placeholder values. Everything else takes its default.
00:10WHAT COMES BACK
Structured content (structuredContent), alongside a text summary:
| Field | Type | Description |
|---|---|---|
outputPath always | string | Path of the file written. |