Open CSV Uploader
open_csv_uploaderOpens the CSV contact upload page in SendGrid's interface, enabling direct upload of contact lists from your browser.
Instructions
Open SendGrid CSV contact upload page in browser
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/contacts.ts:160-175 (handler)The tool definition for 'open_csv_uploader' including its config (title, description) and handler. The handler returns a text message instructing the user to open the CSV upload URL at https://mc.sendgrid.com/contacts/import/upload-csv in their browser.
open_csv_uploader: { config: { title: "Open CSV Uploader", description: "Open SendGrid CSV contact upload page in browser", }, handler: async (): Promise<ToolResult> => { return { content: [ { type: "text", text: "Please open this URL in your browser to upload contacts via CSV:\nhttps://mc.sendgrid.com/contacts/import/upload-csv", }, ], }; }, }, - src/tools/index.ts:1-17 (registration)Registration point where contactTools (including open_csv_uploader) is spread into the allTools export object.
import { automationTools } from "./automations.js"; import { campaignTools } from "./campaigns.js"; import { contactTools } from "./contacts.js"; import { mailTools } from "./mail.js"; import { miscTools } from "./misc.js"; import { statsTools } from "./stats.js"; import { templateTools } from "./templates.js"; export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools, }; - src/prompts/help.ts:129-135 (helper)Reference to open_csv_uploader in the help prompt text, listing it under 'Senders & Import' section.
- open_csv_uploader: Open CSV upload interface Lists are collections of contacts, while segments are filtered subsets of lists based on criteria you define. Custom fields let you store additional contact information beyond email, first name, and last name. How can I help you with your contact management?`, }, },