acf_get_post_field
Retrieves a single Advanced Custom Fields value from a WordPress post by site, post ID, and field name, with formatted or raw output options.
Instructions
Get a single ACF field value for a post
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": {
"site": "<site>",
"post_id": "<post_id>",
"field": "<field>"
},
"name": "acf_get_post_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| field | Yes | Field name or key (lowercased by the endpoint) | |
| format | No | formatted (default): values as get_field returns them; raw: unformatted stored values | |
| post_id | Yes | Post ID |