search_youtube
Search YouTube by keyword to locate candidate videos when the channel or video ID is unknown. Returns video details such as title, duration, view count, and channel for further research.
Instructions
Search YouTube by keyword when you do not yet know the channel or video.
The entry point for research that starts from a topic rather than a URL: find candidate videos here, then feed their channel or URL to list_channel_videos or get_video_transcript.
Args: query: Free-text search, e.g. "FreeCAD sketcher constraints tutorial". max_results: How many results to return (1-100, default 20).
Returns: { "query": str, "count": int, "videos": [ {video_id, title, url, duration_seconds, duration, view_count, channel} ] } Search results carry no upload date; call get_video_transcript or list_channel_videos if you need one.
Errors: Raises ValueError on an empty query and RuntimeError if the search fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |