wp_request
Make REST API calls to WordPress by specifying an HTTP method and a path under the wp-json endpoint. Submit request bodies and use dry-run or approval modes to control write operations safely.
Instructions
DEPRECATED alias for site.request.v1.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "wp_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | Path after /wp-json, for example /wp/v2/pages | |
| method | Yes | ||
| dry_run | No | ||
| require_approval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||