Home/Tools/@tpmjs/official-contract-clause-scan

contractClauseScanTool

@tpmjs/official-contract-clause-scan

Scans contract text to identify and categorize key clauses (termination, liability, IP, etc.)

Official
legal
v0.1.1
MIT

Interactive Playground

Test @tpmjs/official-contract-clause-scan (contractClauseScanTool) 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/official-contract-clause-scan
pnpm add @tpmjs/official-contract-clause-scan
yarn add @tpmjs/official-contract-clause-scan
bun add @tpmjs/official-contract-clause-scan
deno add npm:@tpmjs/official-contract-clause-scan

2. Import the tool

import { contractClauseScanTool } from '@tpmjs/official-contract-clause-scan';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { contractClauseScanTool } from '@tpmjs/official-contract-clause-scan';

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

console.log(result.text);

Signature

(contractText: string) => Promise<unknown>

Tags

analysis
categorize
clause
clauses
contract
etc
identify
key
legal
liability
official
scan
scans
termination
text
tpmjs

Parameters

Available configuration options

Auto-extracted
contractText
Required
Type: string

Contract text to analyze

Schema extracted: 3/1/2026, 4:25:43 AM

README

ERROR: No README data found!

Statistics

Downloads/month

23

GitHub Stars

0

Quality Score

76%

Bundle Size

NPM Keywords

tpmjs
legal
contract
clause
analysis

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai