wp_get_namespaces
List all available WordPress REST API namespaces for a site, including custom endpoints added by plugins, to identify routes before making API calls.
Instructions
List available REST API namespaces (plugins may add custom endpoints)
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": "<site>"
},
"name": "wp_get_namespaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) |