youtube_search
Search YouTube for videos or channels. Returns titles, channel, view counts, upload dates, length and links (or, for channels, subscriber and video counts). Filter by upload date and length; sort by relevance, date, views or rating.
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 |
|---|---|---|---|
| sort | No | Default relevance | |
| type | No | video (default) or channel | |
| limit | No | Max results (default 10, max 20) | |
| query | Yes | What to search for | |
| duration | No | short <4 min, medium 4-20 min, long >20 min (optional) | |
| uploaded | No | Only videos uploaded within this period (optional) |