Available MCP Tools
When you connect to the SuperDocs MCP server, these 38 tools become available to your AI tool. Each tool is designed to surface SuperDocs’ real capabilities — structural editing of styled documents, multi-document sessions, durable Files that persist across sessions, optional cross-session memory and search, fidelity-preserving export, multimodal vision, human-in-the-loop approval, and large-file upload/download without bloating agent context.Chat
Cross-session context is opt-in and owner-scoped.
cross_session_memory and cross_session_search default to off — turn them on per request. Everything stays scoped to the API key that owns it; the AI never reaches into another account’s sessions. For B2B2C integrators serving many end-customers under one key, pass cross_session_memory_key (a stable per-end-customer key, so each customer gets their own durable memory note) and/or cross_session_scope (a list of session ids to narrow cross-session search to that customer’s work). Wipe the memory note any time with clear_cross_session_memory — note its parameter is named memory_key (you pass the same value you sent as cross_session_memory_key on chat).Documents
Sessions
Session documents (multi-document)
A session can hold several open documents at once — like tabs in an editor. One document is always the focused document (the default target for chat turns that don’t specifydocument_id).
Roster reads are token-light by default.
list_session_documents (and the Files reads + open_documents/init_session below) return each document’s title plus metadata, but not the HTML body, by default — perfect for picking a target or labelling tabs without spending tokens. Pass include_html=true only when you actually need the document body.Files (durable documents)
Documents in SuperDocs are durable — they persist across sessions and survive restarts, like files on disk. Open a saved document into any new session to keep working on it, rename it, or archive it when you’re done. Archiving is a soft delete: archived documents are recoverable for about 30 days, then purged.Cross-session memory
SuperDocs can optionally carry a small durable memory note across an API key’s sessions (see the opt-incross_session_memory field on chat/chat_async). This tool manages that note.
Attachments
Jobs
Account
Running as an autonomous agent? You can create your own account and
sk_ API key in one request (no web form, no human), then check quota anytime with get_account_status. When you near your monthly cap, hand the account to a human: POST /v1/agents/handoff with their email returns a one-time takeover code. They open an emailed link, enter the code, and adopt the account in place, so your work and this API key keep working. No human? POST /v1/agents/request-upgrade. Full flow (signup → handoff → adopt) is on the For AI Agents page. (Signup, handoff, adopt, and request-upgrade are REST endpoints, not MCP tools.)Templates
Health
Two upload paths — pick by file size. For files larger than 100KB, use the pre-signed URL flow (
request_upload_url → upload via curl → process_uploaded_document). Bytes stream directly to cloud storage and never pass through your agent’s context window, saving thousands of tokens per upload. For files smaller than 100KB where token cost is trivial, upload_document_base64 still works inline — encode to base64 and pass the original filename (used for file type detection). Supported file types: .pdf, .docx, .txt, .rtf, .md, .html, .htm. Maximum file size: 100 MB.Compact response mode for editing large documents. When working with documents larger than ~20 pages, set
response_mode='compact' on chat and chat_async. Instead of returning the full updated HTML on every turn (~130K tokens for a 100-page styled doc), the response includes only chunk_diffs — the per-section before/after for chunks that were actually changed. To read sections, just ask in natural language (“show me the force majeure clause”) and the AI returns the content in the reply text. A 5-turn editing session on a 100-page doc drops from ~700K tokens to ~3K tokens this way.
