youtube_search
Search public YouTube videos by query and filter results by date, duration, channel, region, language, or safe-search settings.
Instructions
Search public YouTube videos (100 quota units per call). Optional filters: order, publishedAfter/publishedBefore (RFC 3339), videoDuration, channelId, regionCode, relevanceLanguage, safeSearch, pageToken.
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": {
"query": "<query>"
},
"name": "youtube_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort order: relevance, date, viewCount, rating or title. | |
| query | Yes | Search text to look for on YouTube. | |
| channelId | No | Restrict results to this channel ID (UC...). | |
| pageToken | No | Page token from the nextPageToken of a previous response, to fetch the next page. | |
| maxResults | No | Maximum number of items to return, 1-50; omit to use the tool default. | |
| regionCode | No | Two-letter ISO 3166-1 region code, e.g. US. | |
| safeSearch | No | Safe-search filtering level: none, moderate or strict. | |
| videoDuration | No | Filter by video length: any, short, medium or long. | |
| publishedAfter | No | Only return results published at or after this RFC 3339 timestamp. | |
| publishedBefore | No | Only return results published before this RFC 3339 timestamp. | |
| relevanceLanguage | No | Prefer results in this language code, e.g. en or zh-Hans. |