capture_frames
Records a frame sequence for video from a Three.js scene with virtualized time, saving numbered images and returning an ffmpeg command to assemble them.
Instructions
[INSPECT] Read-only. Record a frame sequence for a video. Time is virtualised, so frames are exactly 1/fps apart and smooth even if rendering is slow. Saves numbered images to screenshots/sequence-/ and returns an ffmpeg command.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "capture_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second (default: 30) | |
| width | No | Width in pixels (default: canvas width) | |
| format | No | png = lossless (default), jpeg = smaller/faster | |
| height | No | Height in pixels (default: canvas height) | |
| duration | No | Seconds to record (default: 3) |