Plugin Tools (Experimental)wordpress_activate_plugin

wordpress_activate_plugin

EXPERIMENTAL: Activate a WordPress plugin.

wordpress_activate_plugin

EXPERIMENTAL: Activate a plugin. Requires plugin management to be enabled in Respira settings. Monitor the site after activation.

Parameters

3 parameters, 1 required.

NameTypeRequiredWhat it is
slugstringyesPlugin folder name, or the exact plugin file wordpress_list_plugins reports. Both work, including names with spaces and capitals ("WP PROTECTION" or "WP PROTECTION/SECURITY.php"). Do not sanitize the name yourself: pass it exactly as WordPress spells it.
approval_tokenstringnoSecond-step approval token returned by the first call. Echo it back unchanged with the same slug to complete activation.
force_without_probebooleannoHigh-risk override for hosts that block loopback verification. Default false.

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_activate_plugin",
  "arguments": {
    "slug": "example-slug"
  }
}

Response

{
  "success": true,
  "activated": true,
  "slug": "woocommerce"
}

What it changes

It writes to the site. On a page or post the edit lands on a copy first. The live page changes only when a person approves the copy in wp-admin. Calling it twice with the same arguments leaves the site in the same state as calling it once. On a connection set to read-only it is refused with respira_scope_denied.

How long it takes

A typical call takes about 3.3 seconds. 19 in 20 finish within 7.8 seconds. Measured on real sites over the last week, so it includes the site's own hosting.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Notes

  • Experimental: enable plugin management in Respira settings first

Example Prompts

  • "Activate WooCommerce"
  • "Enable plugin slug 'rank-math'"