Edit page text
edit_pageFind and replace exact text in a BookStack page's Markdown source to fix or extend part of a page without resending all content; requires exact match on Markdown-editor pages only.
Instructions
Exact find-and-replace in a page's Markdown source — the cheap way to fix or extend part of a page without resending all of it. old_text must match the source exactly (read the page with get first). Only for Markdown-editor pages; for WYSIWYG pages use update_page.
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": {
"id": "<id>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| new_text | Yes | Replacement text (empty string deletes old_text) | |
| old_text | Yes | Exact text to find, including whitespace and Markdown syntax | |
| replace_all | No | Replace every occurrence instead of requiring exactly one |