@tpmjs/tools-postmark
Validate template content and model.
Test @tpmjs/tools-postmark (validateTemplate) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-postmarkpnpm add @tpmjs/tools-postmarkyarn add @tpmjs/tools-postmarkbun add @tpmjs/tools-postmarkdeno add npm:@tpmjs/tools-postmarkimport { validateTemplate } from '@tpmjs/tools-postmark';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { validateTemplate } from '@tpmjs/tools-postmark';
const result = await generateText({
model: openai('gpt-4o'),
tools: { validateTemplate },
prompt: 'Your prompt here...',
});
console.log(result.text);(Subject?: string, HtmlBody?: string, TextBody?: string, TemplateType?: string, LayoutTemplate?: string, TestRenderModel?: Record<string, unknown>, InlineCssForHtmlTestRender?: boolean) => Promise<unknown>Available configuration options
SubjectstringSubject line to validate.
HtmlBodystringHTML body to validate.
TextBodystringText body to validate.
TestRenderModelobjectModel data for test rendering.
InlineCssForHtmlTestRenderbooleanInline CSS in test render.
TemplateTypestringLayoutTemplatestringSchema extracted: 3/1/2026, 4:26:16 AM
ERROR: No README data found!
Downloads/month
178
GitHub Stars
14
Quality Score