mediawiki_manage_categories
Add or remove categories from a wiki page without editing full content. Preview changes and get undo instructions with clear results.
Instructions
Add or remove categories from a page without editing the full content.
USE WHEN: User says "add category X to this page", "remove this from category Y", "categorize this page".
NOT FOR: Listing categories (use mediawiki_list_categories). Not for viewing category members (use mediawiki_get_category_members).
PARAMETERS:
title: Page name (required)
add: Array of category names to add (without "Category:" prefix)
remove: Array of category names to remove (without "Category:" prefix)
preview: Preview changes without saving (default false)
summary: Edit summary
RETURNS: Which categories were added, removed, already present, or not found. 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 manage categories for | |
| add | No | Category names to add (without 'Category:' prefix) | |
| remove | No | Category names to remove (without 'Category:' prefix) | |
| summary | No | Edit summary | |
| preview | No | Preview changes without saving |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| title | Yes | ||
| added | No | ||
| removed | No | ||
| already_present | No | ||
| not_found | No | ||
| current_categories | Yes | ||
| preview | Yes | ||
| revision_id | No | ||
| revision | No | ||
| undo | No | ||
| message | Yes |