Read SEO title and description
wp_seo_getRetrieve a post's SEO title, meta description, and focus keyword as stored by Yoast SEO or Rank Math; returns provider and post_id, with missing fields empty and unsupported plugins noted.
Instructions
Get the SEO title, meta description and focus keyword of one post as Yoast SEO or Rank Math store them. Returns {post_id, provider, title, description, focus_keyword}; a field never set is empty. With AIOSEO or no supported SEO plugin the fields are absent and note says why. Needs the right to edit the post; an unknown post_id returns a not-found error. Read-only; wp_seo_detect reports the active plugin alone.
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": {
"post_id": "<post_id>"
},
"name": "wp_seo_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Id of the post or page whose SEO fields are read. |