Driftglass
← All integrations

YouTube

Social media

Let agents run a YouTube channel: search videos, upload and update videos and thumbnails, manage playlists, reply to and moderate comments, and read channel and video analytics.

Actions

24 actions. Call one with POST /v1/tools/{name}/execute or through /mcp.

Search videos

readyoutube.search_videosmcp: youtube_search_videos

Search YouTube for videos (each search uses 100 quota units, so keep them targeted).

ArgumentTypeDescription
querystringSearch terms.
channel_idstringOnly videos from this channel.
orderstring
relevance | date | viewCount | rating
Sort order. Default: relevance
published_afterstringOnly videos published after this RFC 3339 time.
max_resultsintegerResults per page (1-50). Default: 10
page_tokenstringnext_page_token from the previous page.
curl -X POST https://driftglass.io/v1/tools/youtube.search_videos/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get video

readyoutube.get_videomcp: youtube_get_video

Get a video's details, privacy status and statistics.

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
curl -X POST https://driftglass.io/v1/tools/youtube.get_video/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'

Get channel

readyoutube.get_channelmcp: youtube_get_channel

Get the connected channel (default), or another channel by id or @handle, with its statistics.

ArgumentTypeDescription
channel_idstringChannel id.
handlestringChannel handle, e.g. @google.
curl -X POST https://driftglass.io/v1/tools/youtube.get_channel/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List channel videos

readyoutube.list_channel_videosmcp: youtube_list_channel_videos

List a channel's uploads, newest first (the connected channel by default).

ArgumentTypeDescription
channel_idstringChannel id; the connected channel when omitted.
max_resultsintegerResults per page (1-50). Default: 25
page_tokenstringnext_page_token from the previous page.
curl -X POST https://driftglass.io/v1/tools/youtube.list_channel_videos/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List playlists

readyoutube.list_playlistsmcp: youtube_list_playlists

List the connected channel's playlists, or another channel's public ones.

ArgumentTypeDescription
channel_idstringChannel id; the connected channel when omitted.
max_resultsintegerResults per page (1-50). Default: 25
page_tokenstringnext_page_token from the previous page.
curl -X POST https://driftglass.io/v1/tools/youtube.list_playlists/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List playlist videos

readyoutube.list_playlist_itemsmcp: youtube_list_playlist_items

List the videos in a playlist, with the playlist item ids that remove_from_playlist takes.

ArgumentTypeDescription
playlist_idrequiredstringPlaylist id.
max_resultsintegerResults per page (1-50). Default: 25
page_tokenstringnext_page_token from the previous page.
curl -X POST https://driftglass.io/v1/tools/youtube.list_playlist_items/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>"}}'

List comments

readyoutube.list_comment_threadsmcp: youtube_list_comment_threads

List top-level comments (with replies) on a video, or across the connected channel when no video is given.

ArgumentTypeDescription
video_idstringVideo id (the v= part of a watch URL), or the full URL.
orderstring
time | relevance
Sort order. Default: time
searchstringOnly comments containing this text.
max_resultsintegerResults per page (1-50). Default: 20
page_tokenstringnext_page_token from the previous page.
curl -X POST https://driftglass.io/v1/tools/youtube.list_comment_threads/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List captions

readyoutube.list_captionsmcp: youtube_list_captions

List the caption tracks of a video.

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
curl -X POST https://driftglass.io/v1/tools/youtube.list_captions/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'

Download captions

readyoutube.download_captionmcp: youtube_download_caption

Download a caption track of a video the connected channel owns, as SRT or plain WebVTT text.

ArgumentTypeDescription
caption_idrequiredstringCaption track id from list_captions.
formatstring
srt | vtt | sbv
Format. Default: srt
curl -X POST https://driftglass.io/v1/tools/youtube.download_caption/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"caption_id":"<caption_id>"}}'

Get video analytics

readyoutube.get_video_analyticsmcp: youtube_get_video_analytics

Get analytics for one of the connected channel's videos over a date range (views, watch time, likes, …), optionally broken down by day, country or traffic source.

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
start_daterequiredstringFirst day, YYYY-MM-DD.
end_daterequiredstringLast day, YYYY-MM-DD.
metricsstringComma-separated metrics. Default: views,estimatedMinutesWatched,averageViewDuration,likes,comments,subscribersGained,subscribersLost
dimensionsstringOptional dimension, e.g. day, country, video, insightTrafficSourceType.
curl -X POST https://driftglass.io/v1/tools/youtube.get_video_analytics/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>","start_date":"<start_date>","end_date":"<end_date>"}}'

Get channel analytics

readyoutube.get_channel_analyticsmcp: youtube_get_channel_analytics

Get analytics for the connected channel over a date range, optionally broken down by day, video, country or traffic source.

ArgumentTypeDescription
start_daterequiredstringFirst day, YYYY-MM-DD.
end_daterequiredstringLast day, YYYY-MM-DD.
metricsstringComma-separated metrics. Default: views,estimatedMinutesWatched,averageViewDuration,likes,comments,subscribersGained,subscribersLost
dimensionsstringOptional dimension, e.g. day, country, video, insightTrafficSourceType.
curl -X POST https://driftglass.io/v1/tools/youtube.get_channel_analytics/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"start_date":"<start_date>","end_date":"<end_date>"}}'

Upload video

writeyoutube.upload_videomcp: youtube_upload_video

Upload a video from a public URL (up to 90 MB) with title, description, tags and privacy. Set `publish_at` to schedule a private video to go public.

ArgumentTypeDescription
video_urlrequiredstringPublic URL of the video file.
titlerequiredstringTitle (max 100 characters).
descriptionstringDescription.
tagsstring[]Tags.
category_idstringCategory id (22 = People & Blogs, 28 = Science & Technology, 27 = Education). Default: 22
privacy_statusstring
public | unlisted | private
Privacy. Default: private
publish_atstringRFC 3339 time to publish (needs privacy_status private).
made_for_kidsbooleanWhether the video is made for kids. Default: false
contains_synthetic_mediabooleanWhether the video contains realistic altered or AI-generated content. Default: false
curl -X POST https://driftglass.io/v1/tools/youtube.upload_video/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_url":"<video_url>","title":"<title>"}}'

Update video

writeyoutube.update_videomcp: youtube_update_video

Change a video's title, description, tags, category or privacy. Fields you leave out stay as they are.

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
titlestringTitle.
descriptionstringDescription.
tagsstring[]Tags (replaces all).
category_idstringCategory id.
privacy_statusstring
public | unlisted | private
Privacy.
publish_atstringRFC 3339 time to publish a private video.
curl -X POST https://driftglass.io/v1/tools/youtube.update_video/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'

Set thumbnail

writeyoutube.set_thumbnailmcp: youtube_set_thumbnail

Set a video's custom thumbnail from a public JPEG or PNG URL (under 2 MB; the channel must be allowed custom thumbnails).

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
image_urlrequiredstringPublic image URL.
curl -X POST https://driftglass.io/v1/tools/youtube.set_thumbnail/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>","image_url":"<image_url>"}}'

Delete video

writeyoutube.delete_videomcp: youtube_delete_video

Permanently delete one of the connected channel's videos.

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
curl -X POST https://driftglass.io/v1/tools/youtube.delete_video/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'

Create playlist

writeyoutube.create_playlistmcp: youtube_create_playlist

Create a playlist on the connected channel.

ArgumentTypeDescription
titlerequiredstringTitle.
descriptionstringDescription.
privacy_statusstring
public | unlisted | private
Privacy. Default: public
curl -X POST https://driftglass.io/v1/tools/youtube.create_playlist/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"title":"<title>"}}'

Update playlist

writeyoutube.update_playlistmcp: youtube_update_playlist

Rename a playlist or change its description or privacy.

ArgumentTypeDescription
playlist_idrequiredstringPlaylist id.
titlestringTitle.
descriptionstringDescription.
privacy_statusstring
public | unlisted | private
Privacy.
curl -X POST https://driftglass.io/v1/tools/youtube.update_playlist/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>"}}'

Delete playlist

writeyoutube.delete_playlistmcp: youtube_delete_playlist

Delete a playlist (the videos stay).

ArgumentTypeDescription
playlist_idrequiredstringPlaylist id.
curl -X POST https://driftglass.io/v1/tools/youtube.delete_playlist/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>"}}'

Add video to playlist

writeyoutube.add_to_playlistmcp: youtube_add_to_playlist

Add a video to a playlist, at the end or at a position.

ArgumentTypeDescription
playlist_idrequiredstringPlaylist id.
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
positionintegerPosition (0 is first).
curl -X POST https://driftglass.io/v1/tools/youtube.add_to_playlist/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>","video_id":"<video_id>"}}'

Remove video from playlist

writeyoutube.remove_from_playlistmcp: youtube_remove_from_playlist

Remove an item from a playlist by its playlist item id (from list_playlist_items).

ArgumentTypeDescription
playlist_item_idrequiredstringPlaylist item id.
curl -X POST https://driftglass.io/v1/tools/youtube.remove_from_playlist/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"playlist_item_id":"<playlist_item_id>"}}'

Comment on video

writeyoutube.post_commentmcp: youtube_post_comment

Post a top-level comment on a video as the connected channel.

ArgumentTypeDescription
video_idrequiredstringVideo id (the v= part of a watch URL), or the full URL.
textrequiredstringComment text.
curl -X POST https://driftglass.io/v1/tools/youtube.post_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_id":"<video_id>","text":"<text>"}}'

Reply to comment

writeyoutube.reply_to_commentmcp: youtube_reply_to_comment

Reply to a comment (by its id or thread id) as the connected channel.

ArgumentTypeDescription
comment_idrequiredstringId of the top-level comment (same as its thread id).
textrequiredstringReply text.
curl -X POST https://driftglass.io/v1/tools/youtube.reply_to_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"comment_id":"<comment_id>","text":"<text>"}}'

Moderate comment

writeyoutube.moderate_commentmcp: youtube_moderate_comment

Publish, hold for review or reject comments on the connected channel's videos; rejecting can also ban the author.

ArgumentTypeDescription
comment_idsrequiredstring[]Comment ids.
statusrequiredstring
published | heldForReview | rejected
New status.
ban_authorbooleanWith `rejected`, also hide the author's future comments. Default: false
curl -X POST https://driftglass.io/v1/tools/youtube.moderate_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"comment_ids":[],"status":"<status>"}}'

Delete comment

writeyoutube.delete_commentmcp: youtube_delete_comment

Delete a comment the connected channel wrote.

ArgumentTypeDescription
comment_idrequiredstringComment id.
curl -X POST https://driftglass.io/v1/tools/youtube.delete_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"comment_id":"<comment_id>"}}'