mediawiki_manage_categories
Add or remove categories from a page without editing its full content. Returns which categories were added, removed, already present, or not found.
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 |
|---|---|---|---|
| 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 |