open_automation_editor
Edit and configure email automation workflows in SendGrid by opening the automation editor for specific automation IDs to modify campaign sequences and triggers.
Instructions
Open automation editor for a specific automation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes | The automation ID to edit |
Implementation Reference
- src/tools/automations.ts:46-56 (handler)The handler function for the 'open_automation_editor' tool. It takes an automation_id and returns a ToolResult with a text message containing the browser URL to edit that specific automation.handler: async ({ automation_id }: { automation_id: string }): Promise<ToolResult> => { return { content: [ { type: "text", text: `Please open this URL in your browser to edit automation ${automation_id}:\nhttps://mc.sendgrid.com/automations/${automation_id}/detail`, }, ], }; }, },
- src/tools/automations.ts:39-45 (schema)The configuration and input schema for the 'open_automation_editor' tool, defining the title, description, and input validation for 'automation_id' using Zod.config: { title: "Open Automation Editor", description: "Open automation editor for a specific automation", inputSchema: { automation_id: z.string().describe("The automation ID to edit"), }, },
- src/index.ts:21-23 (registration)Generic registration loop that registers the 'open_automation_editor' tool (along with others) by calling server.registerTool with its name, config, and handler.for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }