WolfSuiteWolfXLWolfPPTWolfDocxWolfRender

WolfSuite Workspace · Documentation

MCP tools reference

WolfSuite Cloud gives agents eleven MCP tools: eight for working with Word, Excel, PowerPoint and PDF files in a workspace room, and three for previewing Excel macros without changing the room. An agent can propose document changes for a person to approve, or save directly if the workspace allows it. 1 2 3

The tools

All deployments expose the eight workspace tools. WolfSuite Cloud and self-hosted servers configured with a spreadsheet engine for VBA rehearsal also expose vba_inspect, vba_preview and vba_export. 1

ToolArgumentsWhat it doesEvidence
workspace_listformat, limitLists the room's documents with their current revision and the proposals and threads open on each, filtered by format and cut at the limit. 4 5
doc_readdoc (required), view, target, max_nodesReads a document as structure with addresses, as text or markdown, whole or at an address, or a workbook as cells. 6 7 8
doc_searchquery (required), doc, regex, limitFinds text ignoring case and returns addresses doc_read accepts. The query is a literal unless regex is true. 9 10
doc_createname and format (required), template, opsCreates a blank document or a copy of a template, and saves any first operations as its first change. 11 12 13
doc_editdoc, base_revision, mode, ops (all required), messageWith mode: "propose" holds the operations for a person; with mode: "commit" saves them at once and reports the new revision. 2 3
doc_inspect_visualdoc (required), pages, dpi, preflight, proposal_idRenders pages for a visual check. A server started without a renderer refuses with BAD_REQUEST and the reason no-renderer. 14
pack_link_refreshpack (required), bindings, modeRefreshes linked figures from a pack. A server started without packs refuses with BAD_REQUEST and the reason no-pack-refresher. 14
comment_replythread_id and body (required), resolveReplies in a comment thread as the agent, and resolves the thread when resolve is true. 15 16
vba_inspectExactly one of doc or workbookUpload an .xlsm file to the room. Pass its exact filename as doc to list the VBA modules and previewable procedures. For inline input instead, pass base64 workbook bytes as workbook. 1 17
vba_previewdoc or workbook, plus entry (required); optional date_profile, dialog_answers, host_assumptionsUse the same source and a listed Module.Procedure as entry. Review the proposed cell changes and keep the returned preview_digest. The room workbook stays unchanged. 1 17
vba_exportdoc or workbook, plus entry and preview_digest (required); optional date_profile, dialog_answers, host_assumptionsPass the same source, entry and preview settings, plus the exact digest. In WolfSuite Cloud, open the returned download link before it expires, while signed in as a workspace member with access to the room. Guests cannot download the copy. The reviewed .xlsm contains the previewed changes and the original VBA project; the room workbook is not overwritten. 1 17

The edit loop

  1. Read the document with doc_read and note its revision. 18
  2. Call doc_edit with that revision as base_revision and mode: "propose". Nothing changes yet. 2
  3. A person approves in the web app, which saves the change as the next revision. 19
  4. Read the result, then reply in the thread with comment_reply and resolve it. 18

Proposing the same change twice returns the proposal already open instead of opening another. 20

Errors

CodeMeaningEvidence
REVISION_MISMATCHbase_revision is older than the document. The error carries the current revision to read and start again from. 21
UNKNOWN_DOCUMENTNo document in the room has that name. 22
UNKNOWN_THREADNo comment thread has that id. 23
LICENSE_LIMITThe workspace is read-only. The message gives the reason and the way to upgrade. 24

An argument a tool does not define is refused, and the error lists the arguments that tool does define. 25

When the workspace has no seat for the agent, doc_read and workspace_list are refused and the agent takes no seat. 26

Transports

Over HTTP, initialize opens a session and returns its id, and every later request must carry a session id that server holds. 27 28

Over stdio, a call before initialize is refused, and invalid arguments are JSON-RPC error -32602. 29

Evidence

Each numbered reference above points to the test that exercises the statement or to a recorded observation of the hosted service at workspace.wolfsdk.com. Test paths are relative to the WolfSuite repository.

  1. Test sdk/web/packages/protocol/test/workspace.test.ts: “eleven tools, in order: eight room tools, then three vba tools”
  2. Test sdk/web/packages/mcp/test/tools.test.ts: “propose holds the ops for a person and changes nothing”
  3. Test sdk/web/packages/mcp/test/tools.test.ts: “commit applies the ops at once and reports the new head and the log entry”
  4. Test sdk/web/packages/mcp/test/tools.test.ts: “lists the documents with their heads and what is open on them”
  5. Test sdk/web/packages/mcp/test/tools.test.ts: “filters by format and cuts at the limit”
  6. Test sdk/web/packages/mcp/test/tools.test.ts: “reads the structure with addresses, kinds and text previews”
  7. Test sdk/web/packages/mcp/test/tools.test.ts: “reads text and markdown, whole or at an address”
  8. Test sdk/web/packages/mcp/test/tools.test.ts: “reads the cells of a workbook, and refuses the cells of a document”
  9. Test sdk/web/packages/mcp/test/tools.test.ts: “finds a literal ignoring case, with an address that doc_read accepts”
  10. Test sdk/web/packages/mcp/test/tools.test.ts: “a literal is not a pattern”
  11. Test sdk/web/packages/mcp/test/tools.test.ts: “creates a blank document that can be read at once”
  12. Test sdk/web/packages/mcp/test/tools.test.ts: “copies a template”
  13. Test sdk/web/packages/mcp/test/tools.test.ts: “applies the first ops as a commit and reports its entry”
  14. Test sdk/web/packages/mcp/test/tools.test.ts: “doc_inspect_visual and pack_link_refresh say so instead of pretending”
  15. Test sdk/web/packages/mcp/test/tools.test.ts: “replies in the thread as the agent”
  16. Test sdk/web/packages/mcp/test/tools.test.ts: “resolves the thread with the reply”
  17. Test sdk/web/packages/workspace-cli/test/vba-copy.test.ts: “serves exactly the exported bytes to a reader of the room, and to nobody else, leaving the room as it was”
  18. Test sdk/web/packages/mcp/test/workflow.test.ts: “the agent proposes, the person approves, the agent reads the result and settles the thread”
  19. Test sdk/web/packages/mcp/test/tools.test.ts: “a person approving the proposal commits it, and the agent then reads the result”
  20. Test sdk/web/packages/mcp/test/tools.test.ts: “a repeated propose answers with the proposal already open, says existed, and opens nothing”
  21. Test sdk/web/packages/mcp/test/tools.test.ts: “a stale base_revision is REVISION_MISMATCH carrying the head to rebase on”
  22. Test sdk/web/packages/mcp/test/tools.test.ts: “an unknown document is UNKNOWN_DOCUMENT”
  23. Test sdk/web/packages/mcp/test/tools.test.ts: “an unknown thread is UNKNOWN_THREAD”
  24. Test sdk/web/packages/server/test/read-only.test.ts: “is LICENSE_LIMIT with a stable reason, and a message with the reason and the upgrade path verbatim”
  25. Test sdk/web/packages/mcp/test/tools.test.ts: “an undefined argument is refused with the defined arguments for every tool”
  26. Test sdk/web/packages/mcp/test/tools.test.ts: “an agent without a seat is refused doc_read and workspace_list, and takes none”
  27. Test sdk/web/packages/mcp/test/http.test.ts: “initialize opens a session and returns its id”
  28. Test sdk/web/packages/mcp/test/http.test.ts: “the session is required, and must be one this server holds”
  29. Test sdk/web/packages/mcp/test/stdio.test.ts: “a call before initialize is refused, and invalid arguments are -32602”