anim_extract_frames
Extract frames from GIF or video files into numbered PNG images for frame-by-frame inspection, analysis, or comparison within COMSOL animation workflows.
Instructions
Extract frames from a GIF/video into numbered PNG files.
Args: source: animation path (.gif, .mp4, .avi, .webm). directory: output directory (default: artifact workspace). prefix: file prefix, e.g. "frame" -> frame0001.png. max_frames: maximum number of frames to extract.
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": {
"source": "<source>"
},
"name": "anim_extract_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | frame | |
| source | Yes | ||
| directory | No | ||
| max_frames | No |