SquarePact Word Add-In Connects to OpenClaw Gateway for Agentic Document Editing

SquarePact, a third-party Word add-in (not affiliated with OpenClaw), has added a feature that connects directly to your own OpenClaw gateway over WebSocket. This lets your AI agent edit the document you have open in Word.
How It Works
- The add-in connects to your gateway over WebSocket.
- Edits never apply automatically. The agent proposes an edit, which appears as a card in the add-in; you approve or dismiss it.
- Before applying an approved edit, the add-in rechecks that the current document content still matches what the agent saw. If the document has changed, the edit fails instead of applying to the wrong location — no stale edit surprises.
Key Technical Learnings
Tool Declaration via Message Text
OpenClaw provides no way to declare tools in the chat client. SquarePact works around this by describing the tools in the message text on every turn, then parsing the agent's reply for tool calls. Smaller local models sometimes produce malformed JSON in tool calls, so the add-in sends a retry message restating the required format, capped at 2 retries per turn.
Conversation History on Gateway
OpenClaw keeps conversation history server-side. SquarePact never sends history — each turn is just the tool contract plus the new message. Reopening an old chat reattaches to the same session, which dramatically simplified the client.
Word Bullet Normalization
Word's default bullet characters use Symbol font private-use Unicode, which reads back as empty text. The agent kept reporting broken bullets that were actually fine until SquarePact normalized them before sending to the agent.
Setup and Availability
Setup guide: squarepact.com/openclaw-setup
Site: squarepact.com
The developers are asking the community what other document editing capabilities they'd want their agent to perform that this integration doesn't yet support.
📖 Read the full source: r/openclaw
👀 See Also
Agentalmanac: A Catalog of 23 MCP Servers with Paste-Ready JSON Configs
Reddit user catalogues 23 MCP servers with paste-ready configs for Claude Desktop, Cursor, and Continue. Routes around archived servers to maintained alternatives. Hosted demo runs on Cloudflare Workers.

NaNMesh MCP checks GitHub issues before Claude recommends libraries
NaNMesh MCP is an open-source Model Context Protocol server that crawls GitHub Issues, Stack Overflow, and Reddit for known bugs in development tools. When Claude recommends a library, it can check for real problems before integration.

NervMap: Single Command Server Service Discovery and Diagnostics Tool
NervMap is a Linux tool that discovers Docker containers, systemd services, and bare processes in under 1 second, maps dependencies between them, and diagnoses issues with severity analysis and fix suggestions.

German Bureaucracy Assistant Prompt for Claude: Structured Legal Correspondence
A detailed system prompt for Claude that turns the AI into a structured assistant for German bureaucracy, contracts, insurance disputes, and official letters, with strict fact-checking and DIN 5008 formatting.