wp_seo_set_meta
Write SEO meta for a WordPress post: title, description, Open Graph, Twitter Card, canonical, robots, JSON-LD article, and focus keyword. Works with the active provider, ignoring unsupported fields.
Instructions
Write SEO meta for a post via the active provider. Pass any subset of: title, description, og_title, og_description, og_image (URL), og_type, twitter_card, canonical (URL), robots ({noindex,nofollow,noarchive,nosnippet,noimageindex}), json_ld_article (object), focus_keyword. Fields not supported by the active provider are silently ignored — call wp_seo_detect_provider to know which features apply.
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>",
"meta": "<meta>"
},
"name": "wp_seo_set_meta"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| post_id | Yes |