mediawiki_apply_formatting
Apply bold, italic, strikethrough, underline, or code formatting to selected text in a wiki page. Preview changes before applying.
Instructions
BEST for adding formatting markup to specific text.
USE WHEN: User says "strike out X", "cross out the name", "make X bold", "italicize Y", "mark as code".
NOT FOR: Replacing text (use mediawiki_find_replace).
PARAMETERS:
title: Page name (required)
text: Text to format (required)
format: Formatting type (required):
"strikethrough":
text(for removed/former items)"bold": '''text'''
"italic": ''text''
"underline": text
"code": text
all: Format all occurrences (default false)
preview: Preview changes (default true)
summary: Edit summary
RETURNS: Preview of formatting applied. Set preview=false to apply. Includes revision ID, diff URL, and undo instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rationale | Yes | Required one-sentence explanation of why you are making this change. Stored in the audit log for post-hoc intent reconstruction. | |
| title | Yes | Page title to edit | |
| text | Yes | Text to find and format | |
| format | Yes | Format to apply: 'strikethrough', 'bold', 'italic', 'underline', 'code', 'nowiki' | |
| all | No | Apply to all occurrences (default: first only) | |
| preview | No | Preview changes without saving | |
| summary | No | Edit summary (auto-generated if empty) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| title | Yes | ||
| format_applied | Yes | ||
| match_count | Yes | ||
| format_count | Yes | ||
| preview | Yes | ||
| changes | No | ||
| revision_id | No | ||
| revision | No | ||
| undo | No | ||
| message | Yes |