Edit Wiki Page Content
page_editUpdate a Yandex Wiki page by replacing specific text snippets in a single write, applying sequential replacements to the current content.
Instructions
Edit a Yandex Wiki page by exact-text replacements, without resending the whole page: reads the current content, applies the replacements in order, and writes the result back with a single update. Each old_text must match the stored YFM markup exactly (copy it from page_get, whitespace included) and occur exactly once unless replace_all is set — a missing or ambiguous match fails the whole call before anything is written. NOTE: the Wiki API has no page revisions, so the read-modify-write is not atomic; allow_merge (on by default) asks Wiki to merge a concurrent edit that landed in between rather than overwrite it. Do NOT blindly retry a call whose result you did not see: a replacement whose new_text contains its own old_text applies again on a repeat. Content is Markdown (YFM): plain Markdown renders as-is, but GitHub-specific extensions ('[!NOTE]' alerts, raw HTML) do not — see the wiki-mcp://yfm-cheatsheet resource for YFM equivalents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Wiki page slug or full Wiki URL. Provide either page_id or slug. | |
| page_id | No | Wiki page numeric ID. Provide either page_id or slug. | |
| is_silent | No | Whether to suppress notifications when supported by the API. | |
| allow_merge | No | Let Yandex Wiki three-way merge an edit that landed between this tool's read and its write. On by default: the read-modify-write has no revision to lock against, so without it a concurrent edit is overwritten. | |
| replacements | Yes | Replacements to apply sequentially: each old_text is matched against the content as already edited by the preceding entries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| title | No | ||
| page_id | Yes | ||
| yfm_warnings | No | Markup warnings for the written content (the write itself succeeded): parts that will not render as intended on Yandex Wiki. See the wiki-mcp://yfm-cheatsheet resource for fixes. | |
| occurrences_replaced | Yes | Total occurrences replaced across all entries. Every entry applied — a replacement that did not match fails the whole call before anything is written. |