anthropic and doconda (or @anthropic-ai/sdk and @doconda/sdk) and pass doconda.tools() as tools in
messages.create. When Claude calls create_document, you run it with run() and get the Word file (.docx) with its
PDF, or only the PDF if that’s what you asked for, with their download links.
Steps
- Put your Anthropic key in
ANTHROPIC_API_KEYand your Doconda key (dashboard → API keys) inDOCONDA_API_KEY. - Install the dependencies.
- Run the tool-use loop: while
stop_reasonistool_use, run each tool and hand back thetool_result.
doconda.tools() already have the
shape it expects. With the API’s MCP connector (in beta), Claude calls Doconda’s remote server without you running
anything; the code is in the Claude guide.
What you get back
- With
format: "docx",linksholds the editable Word file and its PDF; withformat: "pdf", only the PDF. status:ready,ready_with_warnings,needs_revieworfailed(not charged).- Links expire after 5 minutes; Claude gets fresh ones with
get_document.
FAQ
Can Claude generate a .docx without tools?
Can Claude generate a .docx without tools?
No: the model’s answer is text. With the tools, Claude decides the content and Doconda creates the file. If you
already have the text,
documents.create(format="docx", content={"markdown": text}) converts it with no agent.What about Claude Desktop or Claude Code?
What about Claude Desktop or Claude Code?
Add the MCP server (
npx -y @doconda/mcp) and ask in the chat. See Claude.Does it work with Claude on Bedrock or Vertex AI?
Does it work with Claude on Bedrock or Vertex AI?
Yes, the tools are standard JSON Schema. See Amazon Bedrock and
Google Vertex AI.
How much does it cost?
How much does it cost?
You pay per delivered document; failed ones are not charged. See pricing.
Keep reading
- Claude: the full guide, with Claude Desktop, Claude Code and the MCP connector.
- Quickstart.