media_overlay
Draw tracked points and positions onto media frames, then tile them into a single image so you can visually verify placements and tracks.
Instructions
Draw positions on the frames from media_frames and tile them into one image to check by eye.
index_path: the index.json from media_frames. Tracks come from track_paths (JSON files with a "track" list, e.g. from media_track) and/or points: each entry is one track, either a list of points or Gemini's answer as is ({"track": [...]}). A point is {"frame": "f_001.png", "x": .., "y": ..} or {"t": seconds, "x": .., "y": ..}. Each track gets its own colour. space: "video" (source pixels) or "image" (cropped-frame pixels). zoom: "X:Y:W:H" region of each frame to keep. Read the returned image to judge the positions.
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": {
"index_path": "<index_path>"
},
"name": "media_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | ||
| zoom | No | ||
| space | No | video | |
| width | No | ||
| points | No | ||
| out_path | No | ||
| index_path | Yes | ||
| session_id | No | ||
| track_paths | No |