import_video
Import video files and convert each frame into ASCII art animation with configurable character sets, colors, and frame rate.
Instructions
Import a video file and convert each frame to ASCII art animation. Requires ffmpeg and optional image processing package.
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": {
"filePath": "<filePath>"
},
"name": "import_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the video file (.mp4, .webm, .mov, .gif) | |
| targetWidth | No | Target width in characters. If omitted, uses canvas width. | |
| targetHeight | No | Target height in characters. If omitted, maintains aspect ratio. | |
| charset | No | Characters to use for brightness mapping (dark to bright) | .:-=+*#%@ |
| colorMode | No | How to apply colors | foreground |
| fps | No | Frames per second to extract | |
| maxFrames | No | Maximum number of frames to import | |
| startTime | No | Start time in seconds | |
| duration | No | Duration in seconds (omit for entire video) |