download_analytics_report_segment
Download analytics report segment data from App Store Connect to analyze app performance metrics and user behavior patterns.
Instructions
Download data from an analytics report segment URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segmentUrl | Yes | The URL of the analytics report segment to download |
Implementation Reference
- src/handlers/analytics.ts:83-91 (handler)The core handler function that downloads the analytics report segment from the given URL using the AppStoreConnectClient's downloadFromUrl method.async downloadAnalyticsReportSegment(args: { segmentUrl: string; }): Promise<{ data: any; contentType: string; size: string }> { const { segmentUrl } = args; validateRequired(args, ['segmentUrl']); return this.client.downloadFromUrl(segmentUrl); }
- src/index.ts:819-832 (schema)The input schema definition for the tool, specifying the required 'segmentUrl' parameter.{ name: "download_analytics_report_segment", description: "Download data from an analytics report segment URL", inputSchema: { type: "object", properties: { segmentUrl: { type: "string", description: "The URL of the analytics report segment to download" } }, required: ["segmentUrl"] } },
- src/index.ts:1397-1398 (registration)The switch case in the tool call handler that dispatches calls to this tool to the AnalyticsHandlers.downloadAnalyticsReportSegment method.case "download_analytics_report_segment": return { toolResult: await this.analyticsHandlers.downloadAnalyticsReportSegment(args as any) };