← Back to Discover

Tiptap AI Toolkit

Tiptap AI Toolkit lets AI models and agents read and edit Tiptap rich-text documents as structured, reviewable changes.

Libraries & SDKs

What it does

Tiptap AI Toolkit connects your AI to the Tiptap document layer. It gives the AI access to document context and structure. The AI then applies precise, scoped edits only where needed. AI edits can become suggestions that users review, accept, reject or discuss before they become final. Models, prompts and agents stay in your own stack. Document actions are single-purpose AI actions, such as insert content, rewrite a selection, proofread, summarize or apply edits. Agent workflows are tool-based systems that combine multiple document actions, ask for clarification, inspect document context and complete more complex requests. Tool definitions for popular AI SDKs are available on the client. REST APIs are available for backend workflows.

Capabilities

  • Works with any AI model that can output text.
  • Tool definitions are available in the formats of Vercel AI SDK, LangChain.js, OpenAI, Anthropic and Mastra.
  • Async document workflows run long-running AI tasks without an active editor session.
  • Custom marks, nodes and extensions work alongside the toolkit, and the AI can be configured to use a custom schema.
  • Tiptap says the AI Toolkit is compatible with Tiptap's collaborative backend, where multiple users can see AI streaming and edits in real time in collaborative documents.

When to use it

  • You want to add context-aware AI assistance directly inside your own editing experience.
  • You want to run rule-based or AI-assisted compliance checks and reviews with clear violations and suggested fixes.
  • You want to build documents from data and templates, with AI filling defined slots and conditional sections.