bulk_create_from_csv
Generate multiple QR codes simultaneously by importing CSV data. Create up to 500 codes with customizable options like colors, styles, and expiration dates from spreadsheet content.
Instructions
Create up to 500 QR codes from CSV data. Pro plan required. Send the CSV content as a string. Required column: target_url. Optional columns: label, format, type, foreground_color, background_color, dot_style, corner_style, frame_style, frame_text, expires_at. Returns all created QR codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_content | Yes | CSV content as a string with header row. Example: "target_url,label\nhttps://example.com,My QR\nhttps://other.com,Other QR" |
Implementation Reference
- packages/mcp/src/tools.ts:824-842 (handler)The tool `bulk_create_from_csv` is defined in `packages/mcp/src/tools.ts`. It includes a schema for `csv_content` and a handler that calls `apiRequest` with the POST method to `/api/qr/bulk/csv`.
bulk_create_from_csv: { description: "Create up to 500 QR codes from CSV data. Pro plan required. Send the CSV content as a string. " + "Required column: target_url. Optional columns: label, format, type, foreground_color, background_color, " + "dot_style, corner_style, frame_style, frame_text, expires_at. Returns all created QR codes.", inputSchema: z.object({ csv_content: z .string() .describe( 'CSV content as a string with header row. Example: "target_url,label\\nhttps://example.com,My QR\\nhttps://other.com,Other QR"' ), }), handler: async (input: { csv_content: string }) => { return apiRequest("/api/qr/bulk/csv", { method: "POST", body: { csv_content: input.csv_content }, }); }, },