@tpmjs/tools-resend
Update a contact's name, subscription status, or properties.
Validation error: The input must be a valid email.
Last checked: 3/1/2026, 4:28:16 AM
Test @tpmjs/tools-resend (updateContact) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-resendpnpm add @tpmjs/tools-resendyarn add @tpmjs/tools-resendbun add @tpmjs/tools-resenddeno add npm:@tpmjs/tools-resendimport { updateContact } from '@tpmjs/tools-resend';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { updateContact } from '@tpmjs/tools-resend';
const result = await generateText({
model: openai('gpt-4o'),
tools: { updateContact },
prompt: 'Your prompt here...',
});
console.log(result.text);(id: string, last_name?: string, first_name?: string, properties?: Record<string, unknown>, unsubscribed?: boolean) => Promise<unknown>Available configuration options
idstringContact ID or email address.
first_namestringUpdated first name.
last_namestringUpdated last name.
unsubscribedbooleanUpdated subscription status.
propertiesobjectUpdated custom properties.
Schema extracted: 3/1/2026, 4:28:16 AM
ERROR: No README data found!
Downloads/month
110
GitHub Stars
0
Quality Score