cromanion_set_playbook
Reword a distilled rule, or ask for a fresh distillation. Rules are what the agent learned from real sessions; cromanion_decide approves or pauses them, and this changes what they SAY. Send a ruleId with condition and/or recommendedAction to reword one — ids come from cromanion_config, which also shows rules you have already approved or paused. Send redistill: true instead to distil new rules from recent sessions; they arrive as proposed for you to rule on. Rate-limited to one distillation an hour. Needs the decisions permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | No | The rule to reword, from cromanion_config. | |
| siteId | No | Which site this call is about. Only needed when your credential covers more than one — cromanion_grants lists them and says whether it is required. Omitting it with several is refused rather than guessed at. | |
| condition | No | When the rule applies, in plain words. Omit to leave it. | |
| redistill | No | Ignore ruleId and distil fresh rules from recent sessions instead. | |
| recommendedAction | No | What the agent should do when it applies. Omit to leave it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| ruleId | No | ||
| changed | No | False when the wording was already what you sent. | |
| newRules | No | Proposals that did not exist before this run. | |
| sessions | No | Finished sessions the distillation read. | |
| condition | No | ||
| redistilled | No | False when there was nothing to distil (no finished sessions yet). | |
| recommendedAction | No |