Get the rules before writing a recipe
start_recipeReturns the brief for writing a recipe to Chop It's library standard (structure, UK ingredient names, metric quantities, method detail), pantry context when the user wants to cook from their pantry, and a recipeDraftToken. save_recipe checks a recipe against the brief named by that token, so a recipe written to this brief is accepted first time. The token is a signed copy of the brief the user can see; it holds no secret and grants no access. Makes no AI call and saves nothing. Requires a linked Chop It account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cuisine | No | Cuisine the user asked for, if any. | |
| dishIdea | Yes | What the user wants to cook, in their words. | |
| servings | No | ||
| exclusions | No | Anything ruled out, in plain words: 'no pork', 'dairy-free', 'no peanuts'. Resolved server-side. | |
| pantryMode | No | ||
| maxTimeMins | No | Hard ceiling on total time, when the user gave one. | |
| focusIngredients | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| dietary | Yes | ||
| servings | Yes | ||
| maxTimeMins | Yes | ||
| methodRules | Yes | ||
| excludeFoods | Yes | ||
| ukVocabulary | Yes | ||
| bannedPhrases | Yes | ||
| pantryMatches | Yes | ||
| excludeProtein | Yes | ||
| outputContract | Yes | ||
| recipeDraftToken | Yes | A signed copy of the brief start_recipe just issued, so the server can confirm the recipe was written to the brief it actually gave out. It is not a credential and not a secret: it carries no keys, grants no access to anything, and everything inside it (servings, the excluded ingredients, the attempt count) was already returned to you in this same response, in the clear. The signature stops those constraints being edited in transit, not read. It is safe to show the user. | |
| unrecognisedExclusions | Yes |