wp_extract_page
Parses a WordPress page into an editable element tree, returning node details like address, tag, and text preview to enable targeted edits.
Instructions
Parse one page into an editable element tree (read-only, no writes).
Returns {builder, roundtrip_ok, tree} where tree is a recursive summary of element nodes: address (index path for edit targeting), tag, admin_label, text_preview (first 80 chars), children. Requires a profile (wp_discover_site).
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": {
"install": "<install>",
"post_id": "<post_id>"
},
"name": "wp_extract_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| install | Yes | ||
| post_id | Yes |