Get post custom fields
wp_get_post_metaGet the custom fields of a post by ID. Pass key to read a single field; without it, all custom fields are returned.
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>"
},
"name": "wp_get_post_meta"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ID | Yes | ||
| key | No |