wordpress_get_option
Get a WordPress option value by option name.
wordpress_get_option
Get option value by name.
Parameters
1 parameter, 1 required.
| Name | Type | Required | What it is |
|---|---|---|---|
option | string | yes | Option name |
Example call
The smallest valid call, with the required parameters only:
{
"name": "wordpress_get_option",
"arguments": {
"option": "value"
}
}
Response
{
"success": true,
"option": "blogname",
"value": "My Site"
}
What it changes
Nothing. It only reads, so there is nothing to approve and nothing to undo.
When it fails
The failures seen most often on real sites in the last 30 days, most common first:
respira_option_not_found: The option does not exist on this site. Callwordpress_list_optionsto see what is stored.respira_rate_limit_exceeded: The site reached its hourly limit of calls for this key. Reads count too. Wait, or raise the limit in WP admin under Respira, Settings, Rate limit.respira_site_id_not_found: No connected site has that ID. Callrespira_list_sitesand use an ID from the result.rest_no_route: The WordPress site has no such endpoint. Almost always an old plugin version, or a security plugin blocking the REST API. Update Respira for WordPress on the site and try again.
How long it takes
A typical call takes about 1.8 seconds. 19 in 20 finish within 4.0 seconds. Measured on real sites over the last week, so it includes the site's own hosting.
Availability
Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.
Example Prompts
- "Get the blogname option"
- "What is the value of option 'permalink_structure'?"
Related Tools
Was this page helpful?