Check a draft against hook rules
check_draftCheck a draft caption against the rules learned for one account, before it is scheduled. Returns which rules the caption follows and which it breaks, with the measured effect of each, so you can rewrite the opening before posting. Call it after writing a caption and before schedule_post or update_post. With no rules learned yet for the account it says so rather than inventing advice; list_hook_rules shows what exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | Yes | The full caption exactly as it would be posted. The opening line matters most, because that is what the rules are about. | |
| accountId | Yes | Id of the account the post will go to, from list_connections. Rules are learned per account, so this decides which rules apply. | |
| mediaKinds | No | What is attached: ["video"], ["image"], or both. Omit for a text-only post. |