Write custom fields
set_content_metaWrite custom post meta on any content item, including keys hidden from REST API, with companion plugin for standard WordPress storage.
Instructions
Write custom fields (post meta) on a content item, including keys not registered with show_in_rest — which core REST refuses to write. Needs the companion plugin. Values are stored as standard post meta, so they survive if this tooling is removed.
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": {
"id": "<id>",
"meta": "<meta>"
},
"name": "set_content_meta"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Content ID. | |
| meta | Yes | Key/value pairs to write. A null value deletes the key. | |
| 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. |