Home/Tools/@tpmjs/tools-pandoc

listInputFormats

@tpmjs/tools-pandoc

List all supported Pandoc input formats.

Official
utilities
v0.1.0
MIT

Interactive Playground

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

2. Import the tool

import { listInputFormats } from '@tpmjs/tools-pandoc';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { listInputFormats } from '@tpmjs/tools-pandoc';

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

console.log(result.text);

Signature

() => Promise<unknown>

Tags

agent
conversion
document
formats
input
list
markdown
pandoc
supported
tpmjs
utilities

Parameters

Available configuration options

Auto-extracted

No schema available for this tool.

README

@tpmjs/tools-pandoc

Pandoc document conversion tools for AI agents. Convert between Markdown, HTML, LaTeX, DOCX, PDF, and dozens more formats.

Requirements

The pandoc binary must be available in the system PATH. The TPMJS executor Docker image includes it.

Tools

  • convert — Convert content between document formats
  • listInputFormats — List all supported input formats
  • listOutputFormats — List all supported output formats

Usage

import { convert, listInputFormats, listOutputFormats } from '@tpmjs/tools-pandoc';

Statistics

Downloads/month

46

GitHub Stars

10

Quality Score

85%

Bundle Size

NPM Keywords

tpmjs
pandoc
document
conversion
markdown
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
listInputFormats | TPMJS | TPMJS