YouTube Data Query
query_dataQuery YouTube data (Step 3 (FINAL) of workflow).
REQUIRED: Complete these steps first using query_contexts:
request='accounts' - Get workspace_id, brand_id, channel_id AND available_requests
request='actions_details' with platform + report_names or actions - Get detailed body structure
Two platforms: • youtube-analytics: channel_basic, video_performance, demographics, traffic_sources, revenue • youtube-data: channel_info, video_details, playlists, comments
Body must include 'platform' and 'action'. Follow the schema from step 2 exactly.
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": {
"body": "<body>"
},
"name": "query_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||