wp_plugin_list
List installed WordPress plugins from an allowed site by executing the WP-CLI plugin list command, outputting JSON.
Instructions
Lees de geïnstalleerde WordPress-plugins van een toegestane site.
site_path moet in wp_allowed_sites staan en wp-config.php
bevatten. De tool voert wp plugin list --format=json uit, standaard
als www-data; met as_www_data=False als root met --allow-root.
De bedoelde operatie is alleen-lezen en heeft een timeout van 60 seconden.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_path": "<site_path>"
},
"name": "wp_plugin_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_path | Yes | ||
| as_www_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||