feat(i18n): update translations (#1815)

* feat(i18n): update translations

* fix translations
This commit is contained in:
Waleed
2025-11-05 11:40:56 -08:00
committed by GitHub
parent 2056e8ae5f
commit 21774de275
6 changed files with 399 additions and 36 deletions

View File

@@ -39,21 +39,32 @@ In Sim ermöglicht die YouTube-Integration Ihren Agenten, YouTube-Inhalte progra
## Gebrauchsanweisung
Integriere YouTube in den Workflow. Kann nach Videos suchen, Videodetails abrufen, Kanalinformationen abrufen, Playlist-Elemente abrufen und Videokommentare abrufen.
Integrieren Sie YouTube in den Workflow. Kann Videos suchen, Videodetails abrufen, Kanalinformationen abrufen, alle Videos eines Kanals abrufen, Kanal-Playlists abrufen, Playlist-Elemente abrufen, verwandte Videos finden und Videokommentare abrufen.
## Tools
### `youtube_search`
Suche nach Videos auf YouTube mit der YouTube Data API.
Suchen Sie nach Videos auf YouTube mit der YouTube Data API. Unterstützt erweiterte Filterung nach Kanal, Datumsbereich, Dauer, Kategorie, Qualität, Untertiteln und mehr.
#### Eingabe
| Parameter | Typ | Erforderlich | Beschreibung |
| --------- | ---- | -------- | ----------- |
| `query` | string | Ja | Suchanfrage für YouTube-Videos |
| `maxResults` | number | Nein | Maximale Anzahl der zurückzugebenden Videos |
| `maxResults` | number | Nein | Maximale Anzahl der zurückzugebenden Videos (1-50) |
| `apiKey` | string | Ja | YouTube API-Schlüssel |
| `channelId` | string | Nein | Filtert Ergebnisse nach einer bestimmten YouTube-Kanal-ID |
| `publishedAfter` | string | Nein | Nur Videos zurückgeben, die nach diesem Datum veröffentlicht wurden (RFC 3339-Format: "2024-01-01T00:00:00Z") |
| `publishedBefore` | string | Nein | Nur Videos zurückgeben, die vor diesem Datum veröffentlicht wurden (RFC 3339-Format: "2024-01-01T00:00:00Z") |
| `videoDuration` | string | Nein | Nach Videolänge filtern: "short" (weniger als 4 Minuten), "medium" (4-20 Minuten), "long" (mehr als 20 Minuten), "any" |
| `order` | string | Nein | Ergebnisse sortieren nach: "date", "rating", "relevance" (Standard), "title", "videoCount", "viewCount" |
| `videoCategoryId` | string | Nein | Nach YouTube-Kategorie-ID filtern (z.B. "10" für Musik, "20" für Gaming) |
| `videoDefinition` | string | Nein | Nach Videoqualität filtern: "high" (HD), "standard", "any" |
| `videoCaption` | string | Nein | Nach Untertitelverfügbarkeit filtern: "closedCaption" (hat Untertitel), "none" (keine Untertitel), "any" |
| `regionCode` | string | Nein | Ergebnisse zurückgeben, die für eine bestimmte Region relevant sind (ISO 3166-1 alpha-2 Ländercode, z.B. "US", "GB") |
| `relevanceLanguage` | string | Nein | Ergebnisse zurückgeben, die für eine Sprache am relevantesten sind (ISO 639-1 Code, z.B. "en", "es") |
| `safeSearch` | string | Nein | Inhaltsfilterungsstufe: "moderate" (Standard), "none", "strict" |
#### Ausgabe
@@ -115,6 +126,45 @@ Erhalte detaillierte Informationen über einen YouTube-Kanal.
| `thumbnail` | string | URL des Kanal-Thumbnails |
| `customUrl` | string | Benutzerdefinierte Kanal-URL |
### `youtube_channel_videos`
Alle Videos von einem bestimmten YouTube-Kanal abrufen, mit Sortieroptionen.
#### Eingabe
| Parameter | Typ | Erforderlich | Beschreibung |
| --------- | ---- | -------- | ----------- |
| `channelId` | string | Ja | YouTube-Kanal-ID, von der Videos abgerufen werden sollen |
| `maxResults` | number | Nein | Maximale Anzahl der zurückzugebenden Videos \(1-50\) |
| `order` | string | Nein | Sortierreihenfolge: "date" \(neueste zuerst\), "rating", "relevance", "title", "viewCount" |
| `pageToken` | string | Nein | Seitentoken für Paginierung |
| `apiKey` | string | Ja | YouTube API-Schlüssel |
#### Ausgabe
| Parameter | Typ | Beschreibung |
| --------- | ---- | ----------- |
| `items` | array | Array von Videos des Kanals |
### `youtube_channel_playlists`
Alle Playlists von einem bestimmten YouTube-Kanal abrufen.
#### Eingabe
| Parameter | Typ | Erforderlich | Beschreibung |
| --------- | ---- | -------- | ----------- |
| `channelId` | string | Ja | YouTube-Kanal-ID, von der Playlists abgerufen werden sollen |
| `maxResults` | number | Nein | Maximale Anzahl der zurückzugebenden Playlists \(1-50\) |
| `pageToken` | string | Nein | Seitentoken für Paginierung |
| `apiKey` | string | Ja | YouTube API-Schlüssel |
#### Ausgabe
| Parameter | Typ | Beschreibung |
| --------- | ---- | ----------- |
| `items` | array | Array von Playlists des Kanals |
### `youtube_playlist_items`
Videos aus einer YouTube-Playlist abrufen.
@@ -125,7 +175,7 @@ Videos aus einer YouTube-Playlist abrufen.
| --------- | ---- | -------- | ----------- |
| `playlistId` | string | Ja | YouTube-Playlist-ID |
| `maxResults` | number | Nein | Maximale Anzahl der zurückzugebenden Videos |
| `pageToken` | string | Nein | Page-Token für Paginierung |
| `pageToken` | string | Nein | Seitentoken für Paginierung |
| `apiKey` | string | Ja | YouTube API-Schlüssel |
#### Ausgabe
@@ -134,9 +184,28 @@ Videos aus einer YouTube-Playlist abrufen.
| --------- | ---- | ----------- |
| `items` | array | Array von Videos in der Playlist |
### `youtube_related_videos`
Finde Videos, die mit einem bestimmten YouTube-Video verwandt sind.
#### Eingabe
| Parameter | Typ | Erforderlich | Beschreibung |
| --------- | ---- | -------- | ----------- |
| `videoId` | string | Ja | YouTube-Video-ID, für die verwandte Videos gefunden werden sollen |
| `maxResults` | number | Nein | Maximale Anzahl der zurückzugebenden verwandten Videos \(1-50\) |
| `pageToken` | string | Nein | Page-Token für Paginierung |
| `apiKey` | string | Ja | YouTube API-Schlüssel |
#### Ausgabe
| Parameter | Typ | Beschreibung |
| --------- | ---- | ----------- |
| `items` | array | Array von verwandten Videos |
### `youtube_comments`
Kommentare von einem YouTube-Video abrufen.
Rufe Kommentare von einem YouTube-Video ab.
#### Eingabe

View File

@@ -39,21 +39,32 @@ En Sim, la integración con YouTube permite a tus agentes buscar y analizar prog
## Instrucciones de uso
Integra YouTube en el flujo de trabajo. Puede buscar videos, obtener detalles de videos, obtener información de canales, obtener elementos de listas de reproducción y obtener comentarios de videos.
Integra YouTube en el flujo de trabajo. Puede buscar videos, obtener detalles de videos, obtener información del canal, obtener todos los videos de un canal, obtener listas de reproducción del canal, obtener elementos de listas de reproducción, encontrar videos relacionados y obtener comentarios de videos.
## Herramientas
### `youtube_search`
Busca videos en YouTube utilizando la API de datos de YouTube.
Busca videos en YouTube utilizando la API de datos de YouTube. Admite filtrado avanzado por canal, rango de fechas, duración, categoría, calidad, subtítulos y más.
#### Entrada
| Parámetro | Tipo | Obligatorio | Descripción |
| --------- | ---- | ----------- | ----------- |
| `query` | string | Sí | Consulta de búsqueda para videos de YouTube |
| `maxResults` | number | No | Número máximo de videos a devolver |
| `maxResults` | number | No | Número máximo de videos a devolver (1-50) |
| `apiKey` | string | Sí | Clave API de YouTube |
| `channelId` | string | No | Filtrar resultados a un ID de canal específico de YouTube |
| `publishedAfter` | string | No | Solo devolver videos publicados después de esta fecha (formato RFC 3339: "2024-01-01T00:00:00Z") |
| `publishedBefore` | string | No | Solo devolver videos publicados antes de esta fecha (formato RFC 3339: "2024-01-01T00:00:00Z") |
| `videoDuration` | string | No | Filtrar por duración del video: "short" (menos de 4 minutos), "medium" (4-20 minutos), "long" (más de 20 minutos), "any" |
| `order` | string | No | Ordenar resultados por: "date", "rating", "relevance" (predeterminado), "title", "videoCount", "viewCount" |
| `videoCategoryId` | string | No | Filtrar por ID de categoría de YouTube (ej., "10" para Música, "20" para Juegos) |
| `videoDefinition` | string | No | Filtrar por calidad de video: "high" (HD), "standard", "any" |
| `videoCaption` | string | No | Filtrar por disponibilidad de subtítulos: "closedCaption" (tiene subtítulos), "none" (sin subtítulos), "any" |
| `regionCode` | string | No | Devolver resultados relevantes para una región específica (código de país ISO 3166-1 alpha-2, ej., "US", "ES") |
| `relevanceLanguage` | string | No | Devolver resultados más relevantes para un idioma (código ISO 639-1, ej., "en", "es") |
| `safeSearch` | string | No | Nivel de filtrado de contenido: "moderate" (predeterminado), "none", "strict" |
#### Salida
@@ -115,6 +126,45 @@ Obtén información detallada sobre un canal de YouTube.
| `thumbnail` | string | URL de la miniatura del canal |
| `customUrl` | string | URL personalizada del canal |
### `youtube_channel_videos`
Obtener todos los videos de un canal específico de YouTube, con opciones de ordenación.
#### Entrada
| Parámetro | Tipo | Obligatorio | Descripción |
| --------- | ---- | ----------- | ----------- |
| `channelId` | string | Sí | ID del canal de YouTube del que obtener videos |
| `maxResults` | number | No | Número máximo de videos a devolver \(1-50\) |
| `order` | string | No | Orden de clasificación: "date" \(más recientes primero\), "rating", "relevance", "title", "viewCount" |
| `pageToken` | string | No | Token de página para paginación |
| `apiKey` | string | Sí | Clave API de YouTube |
#### Salida
| Parámetro | Tipo | Descripción |
| --------- | ---- | ----------- |
| `items` | array | Array de videos del canal |
### `youtube_channel_playlists`
Obtener todas las listas de reproducción de un canal específico de YouTube.
#### Entrada
| Parámetro | Tipo | Obligatorio | Descripción |
| --------- | ---- | ----------- | ----------- |
| `channelId` | string | Sí | ID del canal de YouTube del que obtener listas de reproducción |
| `maxResults` | number | No | Número máximo de listas de reproducción a devolver \(1-50\) |
| `pageToken` | string | No | Token de página para paginación |
| `apiKey` | string | Sí | Clave API de YouTube |
#### Salida
| Parámetro | Tipo | Descripción |
| --------- | ---- | ----------- |
| `items` | array | Array de listas de reproducción del canal |
### `youtube_playlist_items`
Obtener videos de una lista de reproducción de YouTube.
@@ -134,9 +184,28 @@ Obtener videos de una lista de reproducción de YouTube.
| --------- | ---- | ----------- |
| `items` | array | Array de videos en la lista de reproducción |
### `youtube_related_videos`
Encuentra videos relacionados con un video específico de YouTube.
#### Entrada
| Parámetro | Tipo | Obligatorio | Descripción |
| --------- | ---- | ----------- | ----------- |
| `videoId` | string | Sí | ID del video de YouTube para encontrar videos relacionados |
| `maxResults` | number | No | Número máximo de videos relacionados a devolver \(1-50\) |
| `pageToken` | string | No | Token de página para paginación |
| `apiKey` | string | Sí | Clave API de YouTube |
#### Salida
| Parámetro | Tipo | Descripción |
| --------- | ---- | ----------- |
| `items` | array | Array de videos relacionados |
### `youtube_comments`
Obtener comentarios de un video de YouTube.
Obtiene comentarios de un video de YouTube.
#### Entrada

View File

@@ -39,21 +39,32 @@ Dans Sim, l'intégration YouTube permet à vos agents de rechercher et d'analyse
## Instructions d'utilisation
Intégrez YouTube dans le flux de travail. Permet de rechercher des vidéos, obtenir les détails d'une vidéo, obtenir des informations sur une chaîne, obtenir les éléments d'une playlist et obtenir les commentaires d'une vidéo.
Intégrez YouTube dans le flux de travail. Permet de rechercher des vidéos, obtenir les détails d'une vidéo, obtenir des informations sur une chaîne, récupérer toutes les vidéos d'une chaîne, obtenir les playlists d'une chaîne, récupérer les éléments d'une playlist, trouver des vidéos similaires et obtenir les commentaires d'une vidéo.
## Outils
### `youtube_search`
Recherchez des vidéos sur YouTube en utilisant l'API YouTube Data.
Recherchez des vidéos sur YouTube en utilisant l'API YouTube Data. Prend en charge le filtrage avancé par chaîne, plage de dates, durée, catégorie, qualité, sous-titres et plus encore.
#### Entrée
| Paramètre | Type | Obligatoire | Description |
| --------- | ---- | ----------- | ----------- |
| `query` | chaîne | Oui | Requête de recherche pour les vidéos YouTube |
| `maxResults` | nombre | Non | Nombre maximum de vidéos à retourner |
| `maxResults` | nombre | Non | Nombre maximum de vidéos à retourner (1-50) |
| `apiKey` | chaîne | Oui | Clé API YouTube |
| `channelId` | chaîne | Non | Filtrer les résultats pour un ID de chaîne YouTube spécifique |
| `publishedAfter` | chaîne | Non | Ne renvoyer que les vidéos publiées après cette date (format RFC 3339 : "2024-01-01T00:00:00Z") |
| `publishedBefore` | chaîne | Non | Ne renvoyer que les vidéos publiées avant cette date (format RFC 3339 : "2024-01-01T00:00:00Z") |
| `videoDuration` | chaîne | Non | Filtrer par durée de vidéo : "short" (moins de 4 minutes), "medium" (4-20 minutes), "long" (plus de 20 minutes), "any" |
| `order` | chaîne | Non | Trier les résultats par : "date", "rating", "relevance" (par défaut), "title", "videoCount", "viewCount" |
| `videoCategoryId` | chaîne | Non | Filtrer par ID de catégorie YouTube (ex. : "10" pour Musique, "20" pour Jeux vidéo) |
| `videoDefinition` | chaîne | Non | Filtrer par qualité vidéo : "high" (HD), "standard", "any" |
| `videoCaption` | chaîne | Non | Filtrer par disponibilité des sous-titres : "closedCaption" (avec sous-titres), "none" (sans sous-titres), "any" |
| `regionCode` | chaîne | Non | Renvoyer des résultats pertinents pour une région spécifique (code pays ISO 3166-1 alpha-2, ex. : "US", "FR") |
| `relevanceLanguage` | chaîne | Non | Renvoyer les résultats les plus pertinents pour une langue (code ISO 639-1, ex. : "en", "fr") |
| `safeSearch` | chaîne | Non | Niveau de filtrage du contenu : "moderate" (par défaut), "none", "strict" |
#### Sortie
@@ -115,9 +126,48 @@ Obtenir des informations détaillées sur une chaîne YouTube.
| `thumbnail` | chaîne | URL de la miniature de la chaîne |
| `customUrl` | chaîne | URL personnalisée de la chaîne |
### `youtube_channel_videos`
Obtenir toutes les vidéos d'une chaîne YouTube spécifique, avec options de tri.
#### Entrée
| Paramètre | Type | Obligatoire | Description |
| --------- | ---- | ----------- | ----------- |
| `channelId` | chaîne | Oui | ID de la chaîne YouTube dont il faut récupérer les vidéos |
| `maxResults` | nombre | Non | Nombre maximum de vidéos à retourner \(1-50\) |
| `order` | chaîne | Non | Ordre de tri : "date" \(plus récentes d'abord\), "rating", "relevance", "title", "viewCount" |
| `pageToken` | chaîne | Non | Jeton de page pour la pagination |
| `apiKey` | chaîne | Oui | Clé API YouTube |
#### Sortie
| Paramètre | Type | Description |
| --------- | ---- | ----------- |
| `items` | tableau | Tableau des vidéos de la chaîne |
### `youtube_channel_playlists`
Obtenir toutes les playlists d'une chaîne YouTube spécifique.
#### Entrée
| Paramètre | Type | Obligatoire | Description |
| --------- | ---- | ----------- | ----------- |
| `channelId` | chaîne | Oui | ID de la chaîne YouTube dont il faut récupérer les playlists |
| `maxResults` | nombre | Non | Nombre maximum de playlists à retourner \(1-50\) |
| `pageToken` | chaîne | Non | Jeton de page pour la pagination |
| `apiKey` | chaîne | Oui | Clé API YouTube |
#### Sortie
| Paramètre | Type | Description |
| --------- | ---- | ----------- |
| `items` | tableau | Tableau des playlists de la chaîne |
### `youtube_playlist_items`
Obtenir des vidéos d'une playlist YouTube.
Obtenir les vidéos d'une playlist YouTube.
#### Entrée
@@ -134,6 +184,25 @@ Obtenir des vidéos d'une playlist YouTube.
| --------- | ---- | ----------- |
| `items` | tableau | Tableau de vidéos dans la playlist |
### `youtube_related_videos`
Trouver des vidéos liées à une vidéo YouTube spécifique.
#### Entrée
| Paramètre | Type | Obligatoire | Description |
| --------- | ---- | ----------- | ----------- |
| `videoId` | chaîne | Oui | ID de la vidéo YouTube pour laquelle trouver des vidéos liées |
| `maxResults` | nombre | Non | Nombre maximum de vidéos liées à retourner \(1-50\) |
| `pageToken` | chaîne | Non | Jeton de page pour la pagination |
| `apiKey` | chaîne | Oui | Clé API YouTube |
#### Sortie
| Paramètre | Type | Description |
| --------- | ---- | ----------- |
| `items` | tableau | Tableau de vidéos liées |
### `youtube_comments`
Obtenir les commentaires d'une vidéo YouTube.

View File

@@ -39,21 +39,32 @@ Simでは、YouTube統合によりエージェントがワークフローの一
## 使用方法
YouTubeをワークフローに統合します。動画の検索、動画詳細取得、チャンネル情報の取得、プレイリスト項目の取得、動画コメントの取得が可能です。
YouTubeをワークフローに統合します。動画の検索、動画詳細取得、チャンネル情報の取得、チャンネルからすべての動画の取得、チャンネルプレイリストの取得、プレイリスト項目の取得、関連動画の検索、動画コメントの取得が可能です。
## ツール
### `youtube_search`
YouTube Data APIを使用してYouTubeで動画を検索します。
YouTube Data APIを使用してYouTubeで動画を検索します。チャンネル、日付範囲、動画の長さ、カテゴリ、品質、字幕などによる高度なフィルタリングをサポートしています。
#### 入力
| パラメータ | 型 | 必須 | 説明 |
| --------- | ---- | -------- | ----------- |
| `query` | string | はい | YouTube動画の検索クエリ |
| `maxResults` | number | いいえ | 返す動画の最大数 |
| `maxResults` | number | いいえ | 返す動画の最大数1-50 |
| `apiKey` | string | はい | YouTube APIキー |
| `channelId` | string | いいえ | 特定のYouTubeチャンネルIDに結果をフィルタリング |
| `publishedAfter` | string | いいえ | この日付以降に公開された動画のみを返すRFC 3339形式"2024-01-01T00:00:00Z" |
| `publishedBefore` | string | いいえ | この日付以前に公開された動画のみを返すRFC 3339形式"2024-01-01T00:00:00Z" |
| `videoDuration` | string | いいえ | 動画の長さでフィルタリング:"short"4分未満、"medium"4-20分、"long"20分以上、"any" |
| `order` | string | いいえ | 結果の並べ替え:"date"、"rating"、"relevance"(デフォルト)、"title"、"videoCount"、"viewCount" |
| `videoCategoryId` | string | いいえ | YouTubeカテゴリIDでフィルタリング"10"は音楽、"20"はゲーム) |
| `videoDefinition` | string | いいえ | 動画品質でフィルタリング:"high"HD、"standard"、"any" |
| `videoCaption` | string | いいえ | 字幕の有無でフィルタリング:"closedCaption"(字幕あり)、"none"(字幕なし)、"any" |
| `regionCode` | string | いいえ | 特定の地域に関連する結果を返すISO 3166-1 alpha-2国コード、例"US"、"GB" |
| `relevanceLanguage` | string | いいえ | 言語に最も関連する結果を返すISO 639-1コード、例"en"、"es" |
| `safeSearch` | string | いいえ | コンテンツフィルタリングレベル:"moderate"(デフォルト)、"none"、"strict" |
#### 出力
@@ -115,15 +126,54 @@ YouTubeチャンネルに関する詳細情報を取得します。
| `thumbnail` | string | チャンネルサムネイルURL |
| `customUrl` | string | チャンネルカスタムURL |
### `youtube_playlist_items`
### `youtube_channel_videos`
YouTubeプレイリストから動画を取得します。
特定のYouTubeチャンネルからすべての動画を取得し、並べ替えオプションを提供します。
#### 入力
| パラメータ | 型 | 必須 | 説明 |
| --------- | ---- | -------- | ----------- |
| `playlistId` | string | はい | YouTubeプレイリストID |
| `channelId` | string | はい | 動画を取得するYouTubeチャンネルID |
| `maxResults` | number | いいえ | 返す動画の最大数1-50 |
| `order` | string | いいえ | 並べ替え順「date」最新順、「rating」、「relevance」、「title」、「viewCount」 |
| `pageToken` | string | いいえ | ページネーション用のページトークン |
| `apiKey` | string | はい | YouTube APIキー |
#### 出力
| パラメータ | 型 | 説明 |
| --------- | ---- | ----------- |
| `items` | array | チャンネルからの動画の配列 |
### `youtube_channel_playlists`
特定のYouTubeチャンネルからすべての再生リストを取得します。
#### 入力
| パラメータ | 型 | 必須 | 説明 |
| --------- | ---- | -------- | ----------- |
| `channelId` | string | はい | 再生リストを取得するYouTubeチャンネルID |
| `maxResults` | number | いいえ | 返す再生リストの最大数1-50 |
| `pageToken` | string | いいえ | ページネーション用のページトークン |
| `apiKey` | string | はい | YouTube APIキー |
#### 出力
| パラメータ | 型 | 説明 |
| --------- | ---- | ----------- |
| `items` | array | チャンネルからの再生リストの配列 |
### `youtube_playlist_items`
YouTube再生リストから動画を取得します。
#### 入力
| パラメータ | 型 | 必須 | 説明 |
| --------- | ---- | -------- | ----------- |
| `playlistId` | string | はい | YouTube再生リストID |
| `maxResults` | number | いいえ | 返す動画の最大数 |
| `pageToken` | string | いいえ | ページネーション用のページトークン |
| `apiKey` | string | はい | YouTube APIキー |
@@ -134,6 +184,25 @@ YouTubeプレイリストから動画を取得します。
| --------- | ---- | ----------- |
| `items` | array | プレイリスト内の動画の配列 |
### `youtube_related_videos`
特定のYouTube動画に関連する動画を検索します。
#### 入力
| パラメータ | 型 | 必須 | 説明 |
| --------- | ---- | -------- | ----------- |
| `videoId` | string | はい | 関連動画を検索するYouTube動画ID |
| `maxResults` | number | いいえ | 返す関連動画の最大数1-50 |
| `pageToken` | string | いいえ | ページネーション用のページトークン |
| `apiKey` | string | はい | YouTube APIキー |
#### 出力
| パラメータ | 型 | 説明 |
| --------- | ---- | ----------- |
| `items` | array | 関連動画の配列 |
### `youtube_comments`
YouTube動画からコメントを取得します。
@@ -144,7 +213,7 @@ YouTube動画からコメントを取得します。
| --------- | ---- | -------- | ----------- |
| `videoId` | string | はい | YouTube動画ID |
| `maxResults` | number | いいえ | 返すコメントの最大数 |
| `order` | string | いいえ | コメントの並び順time(時間順)またはrelevance(関連性順) |
| `order` | string | いいえ | コメントの並び順timeまたはrelevance |
| `pageToken` | string | いいえ | ページネーション用のページトークン |
| `apiKey` | string | はい | YouTube APIキー |

View File

@@ -39,21 +39,32 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
## 使用说明
将 YouTube 集成到工作流程中。可以搜索视频、获取视频详情、获取频道信息、获取播放列表项目以及获取视频评论。
将 YouTube 集成到工作流程中。可以搜索视频、获取视频详情、获取频道信息、获取频道中的所有视频、获取频道播放列表、获取播放列表项目、查找相关视频以及获取视频评论。
## 工具
### `youtube_search`
使用 YouTube Data API 搜索 YouTube 视频
使用 YouTube Data API YouTube 上搜索视频。支持通过频道、日期范围、时长、类别、质量、字幕等进行高级筛选
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `query` | 字符串 | 是 | YouTube 视频的搜索查询 |
| `maxResults` | 数字 | 否 | 返回视频的最大数量 |
| `maxResults` | 数字 | 否 | 返回视频的最大数量 \(1-50\) |
| `apiKey` | 字符串 | 是 | YouTube API 密钥 |
| `channelId` | 字符串 | 否 | 将结果筛选为特定的 YouTube 频道 ID |
| `publishedAfter` | 字符串 | 否 | 仅返回此日期之后发布的视频 \(RFC 3339 格式: "2024-01-01T00:00:00Z"\) |
| `publishedBefore` | 字符串 | 否 | 仅返回此日期之前发布的视频 \(RFC 3339 格式: "2024-01-01T00:00:00Z"\) |
| `videoDuration` | 字符串 | 否 | 按视频时长筛选: "short" \(<4 分钟\), "medium" \(4-20 分钟\), "long" \(>20 分钟\), "any" |
| `order` | 字符串 | 否 | 按以下方式排序结果: "date", "rating", "relevance" \(默认\), "title", "videoCount", "viewCount" |
| `videoCategoryId` | 字符串 | 否 | 按 YouTube 类别 ID 筛选 \(例如: "10" 表示音乐, "20" 表示游戏\) |
| `videoDefinition` | 字符串 | 否 | 按视频质量筛选: "high" \(高清\), "standard", "any" |
| `videoCaption` | 字符串 | 否 | 按字幕可用性筛选: "closedCaption" \(有字幕\), "none" \(无字幕\), "any" |
| `regionCode` | 字符串 | 否 | 返回与特定地区相关的结果 \(ISO 3166-1 alpha-2 国家代码, 例如: "US", "GB"\) |
| `relevanceLanguage` | 字符串 | 否 | 返回与特定语言最相关的结果 \(ISO 639-1 代码, 例如: "en", "es"\) |
| `safeSearch` | 字符串 | 否 | 内容过滤级别: "moderate" \(默认\), "none", "strict" |
#### 输出
@@ -115,6 +126,45 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
| `thumbnail` | 字符串 | 频道缩略图 URL |
| `customUrl` | 字符串 | 频道自定义 URL |
### `youtube_channel_videos`
从特定的 YouTube 频道获取所有视频,并提供排序选项。
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `channelId` | 字符串 | 是 | 要获取视频的 YouTube 频道 ID |
| `maxResults` | 数字 | 否 | 返回视频的最大数量 \(1-50\) |
| `order` | 字符串 | 否 | 排序顺序:"date" \(最新优先\)、"rating"、"relevance"、"title"、"viewCount" |
| `pageToken` | 字符串 | 否 | 分页的页面令牌 |
| `apiKey` | 字符串 | 是 | YouTube API 密钥 |
#### 输出
| 参数 | 类型 | 描述 |
| --------- | ---- | ----------- |
| `items` | 数组 | 来自频道的视频数组 |
### `youtube_channel_playlists`
从特定的 YouTube 频道获取所有播放列表。
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `channelId` | 字符串 | 是 | 要获取播放列表的 YouTube 频道 ID |
| `maxResults` | 数字 | 否 | 返回播放列表的最大数量 \(1-50\) |
| `pageToken` | 字符串 | 否 | 分页的页面令牌 |
| `apiKey` | 字符串 | 是 | YouTube API 密钥 |
#### 输出
| 参数 | 类型 | 描述 |
| --------- | ---- | ----------- |
| `items` | 数组 | 来自频道的播放列表数组 |
### `youtube_playlist_items`
从 YouTube 播放列表中获取视频。
@@ -134,6 +184,25 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
| --------- | ---- | ----------- |
| `items` | 数组 | 播放列表中的视频数组 |
### `youtube_related_videos`
查找与特定 YouTube 视频相关的视频。
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `videoId` | 字符串 | 是 | 用于查找相关视频的 YouTube 视频 ID |
| `maxResults` | 数字 | 否 | 返回相关视频的最大数量 \(1-50\) |
| `pageToken` | 字符串 | 否 | 分页的页面令牌 |
| `apiKey` | 字符串 | 是 | YouTube API 密钥 |
#### 输出
| 参数 | 类型 | 描述 |
| --------- | ---- | ----------- |
| `items` | 数组 | 相关视频的数组 |
### `youtube_comments`
从 YouTube 视频中获取评论。

View File

@@ -236,12 +236,12 @@ checksums:
content/4: 9a642ef8acbba0fa362ff638cfe4ceee
content/5: b962ad29fed1eaefbcc92b494dae426f
content/6: 821e6394b0a953e2b0842b04ae8f3105
content/7: fac604797e4c3f02358cd9061e0d6738
content/7: dbdb065f41c859a13e23ab7a82266c12
content/8: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
content/9: ae20955b8ab6f7dc9af9f5a2f3dcc021
content/10: 221bb6ebd96fbe6dee87e249e9efeb56
content/10: 773a7f758068c2fd5258d90d67fb2652
content/11: 371d0e46b4bd2c23f559b8bc112f6955
content/12: 45c148fb7cd6e0143ce79c3113de95dc
content/12: 15cfb90b6a0ac24a8cc2b8f40e4433d0
content/13: bcadfc362b69078beee0088e5936c98b
content/14: 2b6fd595e0082e2f859eaf87207b4850
content/15: 520df500d98af98029baab024cbc7f99
@@ -256,20 +256,38 @@ checksums:
content/24: 1efb19693da72b640bed069a2da79bd8
content/25: bcadfc362b69078beee0088e5936c98b
content/26: 17bb05ffcff0a4f8d9c86cdfd7c48f0c
content/27: ef793ba00eb1dd18d978ade2e430a0c3
content/28: 366f7c5a8ca971c18edbb9dd97c73ba1
content/27: 1b090c95eb5361ac220c616110673ec5
content/28: 3039cc1d32976c9a1a3973fa94e70658
content/29: 371d0e46b4bd2c23f559b8bc112f6955
content/30: 135fd99536465a8de4cd18eae682128f
content/30: 2af8f6631ac37d61d1558cb0afcd87b6
content/31: bcadfc362b69078beee0088e5936c98b
content/32: e4824dd7acff8ac2bba07075c1bf5555
content/33: 29d730395e60843523997a5440265c2b
content/34: f40cf8dcdbca5bdabddd2ccafe510827
content/32: 25f0393f494f5b90777c0c1970a08c0b
content/33: 19b479875601a4516fb74f093eaa9a20
content/34: 7d9b7214ce28060c8b9c0c3172bd5bb5
content/35: 371d0e46b4bd2c23f559b8bc112f6955
content/36: fb04fb808287bc585c7bef1622cc5929
content/36: d8fb4a268aee7a983df012ff83e19d56
content/37: bcadfc362b69078beee0088e5936c98b
content/38: 766eb78674c8d8a40cfd13eca533b7a4
content/39: b3f310d5ef115bea5a8b75bf25d7ea9a
content/40: 9f8b3ebb53dbde8abfb139b4a8bc0396
content/38: 1896bb9f159676094cf30e1e4ff2d418
content/39: ef793ba00eb1dd18d978ade2e430a0c3
content/40: 366f7c5a8ca971c18edbb9dd97c73ba1
content/41: 371d0e46b4bd2c23f559b8bc112f6955
content/42: 135fd99536465a8de4cd18eae682128f
content/43: bcadfc362b69078beee0088e5936c98b
content/44: e4824dd7acff8ac2bba07075c1bf5555
content/45: 09cf2346cf5ce107fae6c9f05ff79340
content/46: 00c6430ff11748e620cfe9309f9b76d0
content/47: 371d0e46b4bd2c23f559b8bc112f6955
content/48: a57680d79a2db023cabd03d74a357037
content/49: bcadfc362b69078beee0088e5936c98b
content/50: f189d5068833ff066248bdec22ac14da
content/51: 29d730395e60843523997a5440265c2b
content/52: f40cf8dcdbca5bdabddd2ccafe510827
content/53: 371d0e46b4bd2c23f559b8bc112f6955
content/54: fb04fb808287bc585c7bef1622cc5929
content/55: bcadfc362b69078beee0088e5936c98b
content/56: 766eb78674c8d8a40cfd13eca533b7a4
content/57: b3f310d5ef115bea5a8b75bf25d7ea9a
content/58: 9f8b3ebb53dbde8abfb139b4a8bc0396
31b5f846eb7f4b1751b4bd9233cc3e12:
meta/title: dc96f9cb0985d77c30f55927723f0175
meta/description: 15c7d592f04655f534458cd82180ba1f