media_track
Track a single object across a video range with template matching—no model required—and hold its last position when confidence drops.
Instructions
Follow one object through a video range with OpenCV template matching (no model).
box: "x,y,w,h" of the object on the start frame, in source pixels (read it off a media_frames
grid). Points whose match score is below hold keep the last position and are marked held.
Good for UI, cursors, captions, small units; weak when effects cover the object (then take
keyframes with gemini_analyze_media instead). Check the result with media_overlay.
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": {
"video_path": "<video_path>",
"start": "<start>",
"end": "<end>",
"box": "<box>"
},
"name": "media_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | Yes | ||
| end | Yes | ||
| hold | No | ||
| every | No | ||
| start | Yes | ||
| search | No | ||
| update | No | ||
| out_path | No | ||
| session_id | No | ||
| video_path | Yes |