Home/Tools/@tpmjs/tools-competitor-brief

competitorBriefTool

@tpmjs/tools-competitor-brief

Extract and structure competitor information from various sources into a competitive brief

Official
marketing
v0.1.0
MIT
⚠️

This tool is currently broken

Import Failed
Cannot load from Railway service
Tool "competitorBriefTool" has no valid inputSchema. Tools must use AI SDK jsonSchema(), Zod v4 (._zod), or Zod v3 (._def) schemas.

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

Interactive Playground

Test @tpmjs/tools-competitor-brief (competitorBriefTool) 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-competitor-brief
pnpm add @tpmjs/tools-competitor-brief
yarn add @tpmjs/tools-competitor-brief
bun add @tpmjs/tools-competitor-brief
deno add npm:@tpmjs/tools-competitor-brief

2. Import the tool

import { competitorBriefTool } from '@tpmjs/tools-competitor-brief';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { competitorBriefTool } from '@tpmjs/tools-competitor-brief';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { competitorBriefTool },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Parameters

Available configuration options

Author-provided
competitorName
Required
Type: string

Name of competitor to analyze

sources
Required
Type: array

Source texts/URLs to analyze

Try to auto-extract schema from the package

README

ERROR: No README data found!

Statistics

Downloads/month

6

GitHub Stars

0

Quality Score

73%

Bundle Size

NPM Keywords

tpmjs
marketing
competitive-analysis
market-research

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai