seo_generate_code_fix
Generates surgical, framework-aware code fixes (Laravel Blade, Next.js App/Pages, HTML, PHP, Astro, Svelte) including WebMCP discovery link injection with unified diff preview. Set applyDirectly to true to write changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | New or updated title tag. | |
| filePath | Yes | Path to the source file to modify. | |
| canonicalUrl | No | Canonical URL. | |
| jsonLdSchema | No | Schema.org JSON-LD object to inject. | |
| applyDirectly | No | Whether to write changes directly to disk (default: false). | |
| webMcpEndpoint | No | WebMCP endpoint URL to inject into HTML <head> via <link rel="mcp-server" /> (e.g. /mcp or /api/mcp). | |
| metaDescription | No | New or updated meta description. | |
| addWebMcpDiscovery | No | Whether to inject standard <link rel="mcp-server" href="/mcp" /> tag. |