read_plugin_file
Retrieve the contents of any file inside a WordPress plugin by providing the plugin slug and the relative file path.
Instructions
Read the contents of a specific file from an extracted plugin
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": {
"slug": "<slug>",
"file_path": "<file_path>"
},
"name": "read_plugin_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Plugin slug | |
| file_path | Yes | Relative path to the file within the plugin |