Edit or Create Pages

Last modified by superadmin on 2026/10/23 17:29

Steps

Have a connected assistant change a page or create one, where an administrator has enabled the write tools. The assistant saves as you, so the change carries your name (see Agent Authentication).

  1. Ask the assistant to make a change: "add a paragraph about backups to the getting-started page". It reads the page first, then applies exact find-and-replace edits in XWiki 2.1 syntax, not Markdown, and reports the version it saved.

    A terminal session in which the assistant calls the edit_document tool on a page and reports that it saved version 1.2, highlighted

  2. Ask it to create a page where you need a new one: "create a new page in Sandbox called weekly-status for the team updates".
  3. Open the page's history and check the change: it is saved under your own name, and its summary is stamped [AI] so you can tell it apart and compare it with earlier versions.

    The history of the edited page, with the AI-stamped summary of version 1.2 highlighted in the Summary column

FAQ

Why does an edit keep failing with "re-read and retry"?

The page was modified since the assistant last read it. Tell the assistant to read it again and try again. This is the conflict protection working as intended.

Why does the assistant say it cannot write or create pages?

Write tools are disabled by default. Ask your administrator to enable them in the wiki's MCP configuration.

Why is the change not in the page history?

Agent edits are saved as minor versions by default, and the history hides minor versions until you ask to see them. Enable the display of minor edits to find the change.

Related

Get Connected