update_wiki_page
Update a Gitea wiki page by name, modifying its Markdown content or renaming it. Read the page first to avoid overwriting recent changes.
Instructions
Edit an existing wiki page by pageName (PATCH: only provided fields change). content is plain Markdown (base64 handled for you); omit it to keep the current content. RISK: passing title RENAMES the page, which breaks existing links to the old name. Read the page with get_wiki_page first if it may have changed since your last read. Returns the updated page with decoded content.
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": {
"pageName": "<pageName>"
},
"name": "update_wiki_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| title | No | New page title — RENAMES the page (omit to keep the current title) | |
| content | No | New page content in Markdown (plain text — base64 encoding is handled for you) | |
| message | No | Optional commit message summarizing the change | |
| pageName | Yes | Wiki page name/title as it appears in the wiki URL (e.g. 'Home', 'Getting-Started') |