get_file
Retrieve specific file details from Mailchimp's Marketing API to access email marketing assets and content information.
Instructions
Get details of a specific file
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The file ID |
Implementation Reference
- src/tools/index.ts:995-1005 (handler)Handler for the 'get_file' tool call. Delegates to MailchimpService.getFile and formats response as JSON text content.case "get_file": const file = await service.getFile(args.file_id); return { content: [ { type: "text", text: JSON.stringify(file, null, 2), }, ], };
- src/tools/index.ts:391-400 (schema)Input schema definition for the 'get_file' tool, specifying the required 'file_id' parameter.inputSchema: { type: "object", properties: { file_id: { type: "string", description: "The file ID", }, }, required: ["file_id"], },
- src/tools/index.ts:388-401 (registration)Tool registration entry in getToolDefinitions array, defining name, description, and schema for 'get_file'.{ name: "get_file", description: "Get details of a specific file", inputSchema: { type: "object", properties: { file_id: { type: "string", description: "The file ID", }, }, required: ["file_id"], }, },
- src/services/mailchimp.ts:278-280 (helper)MailchimpService helper method that performs the API request to retrieve file details from Mailchimp File Manager.async getFile(fileId: string): Promise<MailchimpFile> { return await this.makeRequest(`/file-manager/files/${fileId}`); }