Home/Tools/@tpmjs/tools-resend

updateContact

@tpmjs/tools-resend

Update a contact's name, subscription status, or properties.

Official
ops
v0.1.0
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
Validation error: The input must be a valid email.

Last checked: 3/1/2026, 4:28:16 AM

Interactive Playground

Test @tpmjs/tools-resend (updateContact) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-resend
pnpm add @tpmjs/tools-resend
yarn add @tpmjs/tools-resend
bun add @tpmjs/tools-resend
deno add npm:@tpmjs/tools-resend

2. Import the tool

import { updateContact } from '@tpmjs/tools-resend';

3. Use with AI SDK

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);

Signature

(id: string, last_name?: string, first_name?: string, properties?: Record<string, unknown>, unsubscribed?: boolean) => Promise<unknown>

Tags

agent
contact
email
name
ops
properties
resend
status
subscription
tpmjs
transactional
update

Parameters

Available configuration options

Auto-extracted
id
Required
Type: string

Contact ID or email address.

first_name
Optional
Type: string

Updated first name.

last_name
Optional
Type: string

Updated last name.

unsubscribed
Optional
Type: boolean

Updated subscription status.

properties
Optional
Type: object

Updated custom properties.

Schema extracted: 3/1/2026, 4:28:16 AM

README

ERROR: No README data found!

Statistics

Downloads/month

110

GitHub Stars

0

Quality Score

78%

Bundle Size

NPM Keywords

tpmjs
resend
email
transactional
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
updateContact | TPMJS | TPMJS