Yt Search
yt_searchSearch YouTube for videos, channels, or playlists. Returns snippet info including title, description, channel, thumbnails, and publish date.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "machine learning tutorial",
"_apiKey": "your-youtube-api-key"
},
"name": "yt_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Resource type to search: "video", "channel", or "playlist" (default: "video") | |
| order | No | Sort order: "date", "rating", "relevance", or "viewCount" (default: "relevance") | |
| query | Yes | Search term | |
| _apiKey | Yes | YouTube Data API v3 key from Google Cloud Console | |
| channel_id | No | Filter results to a specific channel ID | |
| max_results | No | Number of results to return (default 10, max 50) | |
| published_after | No | Filter results published after this ISO 8601 date (e.g. "2024-01-01T00:00:00Z") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | Array of search result items | |
| total_results | Yes | Total number of search results available |