optimize_content
Generate actionable SEO fix instructions for a page after keyword audit. Get step-by-step guidance to add keywords, adjust density, and improve internal/external links while preserving content structure.
Instructions
Generate specific optimization instructions for a page based on its keyword audit results. Runs the content audit, then for each failing check produces actionable fix instructions: add keyword to title, increase density by N occurrences, add internal/external links, vary keyword formatting.
Use this after reviewing a page with get_page_seo to get step-by-step instructions for improving keyword optimization. The AI agent reads these instructions and modifies the source files.
Constraint: instructions preserve content structure (headings, sections, flow). Only text, formatting, and links are modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Site domain (e.g., "example.com"). Uses SEO_CLIENT_DOMAIN env var if not provided. | |
| project_id | No | Project UUID — use instead of domain when no domain is configured. | |
| url_path | Yes | Page URL path to optimize (e.g., "/service-areas/mosquito-control-toronto/") |