AI Toolkit

Build Cursor-like experiencesfor document editing

Let your AI understand document content and schema, make precise edits, and stream content into the editor. Ship chatbots, autocompletion, and proofreading features in minutes instead of months.

01

Context-aware editing with live selection

02

AI-powered suggestions as actionable diffs

03

Accept or reject changes instantly

04

Stream results directly in the editor

05

Works with any custom schema

Editing superpowersin a fraction of the time

The AI Toolkit equips your AI models to read, understand, and edit documents with speed and reliability. Transform your chatbot into a document collaborator.

Cut development time drastically

Plug AI Toolkit methods into your agent and unlock advanced editing immediately.

Bring your own AI setup

Works with any AI model, framework, and infrastructure or your custom LLM.

Prompt with document and editor context

Give your agent full awareness of selection, custom schema, and content for smarter editing.

Support custom Tiptap nodes

Configure your agent to work with custom nodes, marks, and attributes. Generate and edit your own components with AI.

High performance, seamless integration

Optimized for speed and reliability, even with large documents and collaborative use cases.

Give users controlto trust your AI

Make every edit visible, reviewable, and reversible. The AI Toolkit turns mysterious AI operations into transparent collaboration your users actually trust.

Review before accepting

Track-changes UI for every AI edit – users decide what stays or goes.

Justify AI edits

Require your agent to explain changes by leaving contextual comments.

Undo without fear

Pair with the snapshot extension for full version history and instant rollback.

Highlight every AI change

Auto-scroll to each new edit as your AI streams changes in real time.

Set AI boundaries

Define exactly what AI can and cannot edit – enforce read/write rules easily

Audit every operation

Keep a complete log of document changes – see who edited what, when, and why.

Schedule a call

Your AI can think…teach it to write!

The AI Toolkit turns your agent into a real-time writing assistant: stream edits as they happen, collaborate with suggestions, and patch changes instantly.

Edit selected content instantly

Apply changes exactly where you need them – fast, precise, and without processing the entire document.

Stream AI edits in real-time

Show generated content and tool calls instantly in the document as they appear.

Collaborate with AI suggestions

Review, accept, or reject AI-generated changes for human & AI teamwork.

AI-powered comments for context

Let your agent add comments to explain suggestions, highlight issues, or provide feedback.

Built forcontent that matters

Your AI understands your domain. Our toolkit makes it fast. Together, they handle grant proposals, legal documents, and technical content with the precision experts demand and the speed users expect.

Content & Publishing
Newsletters, marketing content, editorial workflows serving hundreds of thousands of users
Education & Research
Grant proposals, academic papers, large documents with citations
Finance & Compliance
Financial reports, RFPs, regulatory documents with audit trails and collaboration
Healthcare & Medical
Patient records, research protocols & HIPAA-compliant documentation
Science & Research
Scientific papers with formulas, LaTeX support, complex citations
Legal & Contracts
Large briefs, contracts with perfect Word export, tracked changes and headers & footers
Technical Documentation
API docs, knowledge bases with custom components, code blocks, and versioning support
Enterprise Content
Wikis, compliance documents, secure processing with domain-specific requirements
HR & Recruiting
Job descriptions, assessments, offer letters with specialized workflows and templates

Developer Docs

Code with clarity: Explore comprehensive documentation and examples to jumpstart your journey with Tiptap.

Documentation

Frequently
 askedquestions

Tiptap AI Toolkit pricing is separate from AI provider costs. However, you can use the AI Toolkit features to reduce your token cost by retrieving content in chunks and leveraging our optimized patch format for small, precise edits.

Yes, the AI Toolkit is built on Tiptap's extension architecture. It works alongside your custom marks, nodes and extensions. The AI can be configured to understand and generate content using your custom schema.

Business and Enterprise plans include unlimited AI Toolkit usage. You only pay for API calls to your AI provider. There are no additional Tiptap charges.

Yes, the AI Toolkit is compatible with Tiptap's collaborative backend. Multiple users can see AI streaming and edits in real-time within collaborative documents. Suggestions are only visible to the user executing the AI prompt until they accept the changes.

Server-side tool execution is currently the highest priority item on our roadmap!

The AI Toolkit is a client-side library that is GDPR-neutral. It integrates with your choice of an AI provider.

Yes. You have full control over prompts, tools and UI. The AI Toolkit provides default tool definitions, but also Editor API primitives that you can use to create custom tools and build your own AI user experience.

A 30 minute session with our core engineers covering your use case deep-dive, AI Toolkit architecture, integration planning and immediate setup with NPM packages and Slack channel access.

Yes, you can provide your custom schema definition with the Schema awareness feature to make your AI automatically understand your custom elements structure and output valid properties. For example, if you have custom "citation" nodes or "legal clause" components, the AI will generate and edit them correctly after you've specified them as part of the Schema awareness feature.

The AI Toolkit is available exclusively to Business and Enterprise customers. Business plan customers can subscribe directly, while Enterprise customers must purchase the AI Toolkit as part of their custom contract. Once you have access, you can schedule an onboarding call from your Cloud dashboard and join a dedicated Slack channel with Tiptap's core engineering team.

The AI Toolkit can be used with any AI model of your choice (that can output text). Find a list of the best AI models to use with the AI Toolkit in the docs.

The AI Toolkit is also compatible with any AI agent library or framework. The tool definitions of the AI Toolkit are available in the format of popular AI provider libraries like Vercel AI SDK, LangChain.js, OpenAI, Anthropic and Mastra. Other providers can also be integrated by creating a custom adapter library as described in the docs.

Absolutely! The AI Toolkit is framework-agnostic and works with LangChain, the AI SDK by Vercel, Anthropic SDK, OpenAI or any other custom AI model or agent. Instead of rebuilding your backend you're adding document editing capabilities to your existing stack.

Yes, the AI Toolkit reads content in chunks and can process only relevant sections instead of entire documents. Once your agent writes into your document it can write and return suggestions in under a second.

Once your agent has started outputting content the first token appears immediately. Users can see the progress in real-time instead of waiting for your agent to finish. With the Toolkit your agent can stream both simple content and custom React components.

The AI Toolkit augments your integrated AI agents with precise, fast document-editing capabilities, enabling them to read and write directly within your editor.

By contrast, when a frontier model is integrated without the Toolkit, it can neither read documents efficiently nor write into them with precision, creating friction for both simple and large edits.

With the AI Toolkit in place, your agent can stream responses in real time, understand your document schema, and apply edits at scale across multi-page documents so users no longer need to copy and paste into ChatGPT or Claude to adjust their content.