MediaWiki API help

This is an auto-generated MediaWiki Action API documentation page.

action=wandaedit

(main | wandaedit)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: Wanda
  • License: GPL-2.0-or-later

Preview or apply an AI-assisted edit to a wiki page using the Wanda extension.

Specific parameters:
Other general parameters are available.
message

Natural-language editing instruction (e.g. "Change the Phone number field to 555-1212").

Default: (empty)
title

Title of the page to edit. If empty, Wanda discovers candidate pages for a batch edit. If the page does not exist, it will be created.

Default: (empty)
batchid

Opaque batch identifier returned by the 'plan' stage.

Default: (empty)
proposalid

Opaque proposal identifier returned by a 'preview' stage, used to confirm a save.

Default: (empty)
source

The research source to retrieve during the 'context' stage.

Default: (empty)
summary

Optional custom edit summary. If omitted, a summary is generated from the instruction.

Default: (empty)
stage

Which stage of the staged edit flow to run: 'plan' (discover candidate pages), 'context' (retrieve research for a source), or 'preview' (generate a proposed edit).

One of the following values: context, plan, preview
Default: preview
sources

Pipe-separated list of sources to allow for research-grounded editing (e.g. 'wiki|cargo'). Defaults to 'wiki'.

Default: wiki
confirm

When false (default), preview an edit. When true, save the previously previewed proposal identified by proposalid.

Type: boolean (details)
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.