content_for_page
OPTIMISE A PAGE THAT ALREADY EXISTS — start here when the user wants an existing blog or page improved. XeoRank fetches the live page, makes its text the brief's author_draft and draft (its own title/meta/slug as front-matter — nothing re-typed), picks the target from the page's STRIKING-DISTANCE Search Console queries (positions 4–20, most impressions first; override with target_keyword), saves the before-score and the 28-day Search Console baseline, and returns optimisation guidance: keep the URL, change the least, fix title/meta where click-through lags the position, add an H2 per striking question, add first-hand material, de-AI the cadence findings. publish_content_brief then UPDATES the existing WordPress post in place; outcomes are read as uplift against the baseline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The live page URL on this site | |
| notes | No | What the user wants from the edit | |
| goal_id | No | The roadmap goal this serves, if any | |
| site_id | Yes | The site ID | |
| target_keyword | No | Override the derived target | |
| author_wrote_it | No | true only if the author confirms the live text is their own unedited writing — then it also feeds their voice profile. Default false: an AI-assisted page must not teach the voice profile its tics. |