List roles
list_rolesFetch all WordPress roles and their capabilities for a site, enabling correct role selection when creating or updating users. Uses companion plugin or falls back to standard roles.
Instructions
List the roles registered on the site with their capabilities, so you can pick the right role before creating or updating a user. Uses the companion plugin when available and falls back to the standard WordPress roles otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |