Home/Tools/@tpmjs/tools-compare-pages

comparePagesTool

@tpmjs/tools-compare-pages

Compare two URLs for agreements, conflicts, and unique points

Official
research
v0.3.0
MIT
⚠️

This tool is currently broken

Import Failed
Cannot load from Railway service
Import 'https://esm.sh/@napi-rs/snappy-android-arm-eabi@7.3.3?target=denonext' failed: 500 Internal Server Error
    at https://esm.sh/snappy@7.3.3?target=denonext:3:8

Last checked: 1/1/2026, 1:06:13 AM

Interactive Playground

Test @tpmjs/tools-compare-pages (comparePagesTool) 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-compare-pages
pnpm add @tpmjs/tools-compare-pages
yarn add @tpmjs/tools-compare-pages
bun add @tpmjs/tools-compare-pages
deno add npm:@tpmjs/tools-compare-pages

2. Import the tool

import { comparePagesTool } from '@tpmjs/tools-compare-pages';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { comparePagesTool } from '@tpmjs/tools-compare-pages';

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

console.log(result.text);

Parameters

Available configuration options

Author-provided
urlA
Required
Type: string

First URL to compare

urlB
Required
Type: string

Second URL to compare

Schema extracted: 12/31/2025, 10:52:13 AM

Try to auto-extract schema from the package

README

ERROR: No README data found!

Statistics

Downloads/month

0

Quality Score

67%

Bundle Size

NPM Keywords

tpmjs
research
ai
comparison
fact-checking

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai