draft_patch
Patches: drafts a title/metaDescription/canonical/redirect fix for one page's finding. FREE for canonical/redirect (deterministic — canonical is always the page's own URL, redirect always needs an explicit value); title/metaDescription cost one AI-gateway operation UNLESS value is given, which sets an explicit replacement instead of drafting one. This is a MUTATION — it creates or overwrites this page+field's draft, but does not publish it (use publish_patch for that). Requires an org admin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | An explicit replacement value instead of AI-drafting one. Required for redirect (broken_page) — there is no computable default. Never used for canonical, which is always the page's own URL. | |
| pageUrl | Yes | The exact crawled page URL this finding is on. | |
| issueType | Yes | Which finding this patch addresses — determines the field (title/metaDescription/canonical/redirect). | |
| projectId | Yes | Required. The MisarSEO project ID to scope this call to. Get one from list_projects. |