patch_wiki_page
Edits part of a Redmine wiki page without resending the whole body: fetches current text, applies an append, prepend, or replace change, and writes it back so untouched content is preserved.
Instructions
Edit part of a wiki page without resending the whole body. Fetches the current text, applies one change, and writes it back — so untouched content cannot be lost the way a full update_wiki_page overwrite can lose it. Modes: append, prepend, replace.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"title": "<title>",
"mode": "<mode>"
},
"name": "patch_wiki_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | replace mode only: the exact literal string to find. Not a regex. Must match expect_count times or the edit is refused. | |
| mode | Yes | append: add `text` to the end. prepend: add `text` to the start. replace: substitute `find` with `text`. | |
| text | No | The text to append, prepend, or substitute in. For replace, an empty string deletes the matched text. | |
| title | Yes | Page title | |
| comments | No | Version comment | |
| project_id | Yes | Project identifier (not ID) | |
| expect_count | No | replace mode only (default 1): how many occurrences of `find` are expected. The edit is refused if the real count differs — this is the guard that turns a silent no-op or an accidental mass-replace into an error. | |
| check_version | No | Default true: send the version read during the fetch so Redmine refuses the write if someone else edited the page in between. Set false only to force through a known conflict. |