list_media_clips
Retrieve a complete list of all clips in the DaVinci Resolve media pool to quickly locate and organize your video assets for editing.
Instructions
List all clips in the media pool
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Core handler function that lists all clips in the media pool root folder. Gets the media pool, root folder, enumerates clips, and returns name/duration/fps for each.
def list_media_clips(self) -> list[dict[str, Any]]: """List all clips in the media pool root folder.""" project = self._ensure_project() media_pool = project.GetMediaPool() if not media_pool: raise DaVinciResolveError("Failed to get Media Pool") root_folder = media_pool.GetRootFolder() if not root_folder: raise DaVinciResolveError("Failed to get root folder") clips = root_folder.GetClipList() if not clips: return [] result: list[dict[str, Any]] = [] for clip in clips: clip_info = { "name": clip.GetName(), "duration": clip.GetDuration(), "fps": clip.GetClipProperty("FPS") or "Unknown", } result.append(clip_info) return result - src/davinci_mcp/tools/__init__.py:127-131 (registration)Tool schema registration: defines 'list_media_clips' with no input parameters and description 'List all clips in the media pool'.
types.Tool( name="list_media_clips", description="List all clips in the media pool", inputSchema={"type": "object", "properties": {}, "required": []}, ), - src/davinci_mcp/server.py:135-136 (registration)Server dispatch: routes the 'list_media_clips' tool call name to resolve_client.list_media_clips() in _call_tool.
elif name == "list_media_clips": return self.resolve_client.list_media_clips() - src/davinci_mcp/server.py:164-165 (registration)Resource dispatch (secondary): also exposes list_media_clips via 'resolve://media-clips' URI for resource reads.
elif uri == "resolve://media-clips": return self.resolve_client.list_media_clips()