List plugin files
wp_list_plugin_filesList the files inside one installed plugin's folder (wp-content/plugins/), recursively; the plugins themselves are listed by wp_list_plugins, a file's content is read by wp_read_plugin_file. Returns plugin and files: paths relative to the folder, sorted, at most 800 (the answer does not say whether more exist). An unknown folder is an error, and so is a single-file plugin without a folder (hello.php). Requires edit_plugins; runs only with the site's write access on. Forwarded by AlphaBridge Connect to the one site this connection reaches.
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": {
"plugin": "<plugin>"
},
"name": "wp_list_plugin_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | Yes | Plugin folder name, the part before the slash in the file wp_list_plugins returns (e.g. "akismet" for akismet/akismet.php). |