Upload a private recipe
upload_recipeAdd a recipe the user supplies themselves: pasted in, dictated, a family recipe they want kept, or a web page they point at. For a web page, pass the page's raw HTML or its JSON-LD as markup together with source_url; the server extracts the facts. Each call creates a new recipe that only this user and their household see in searches and saves; it never shows up for anyone else. The recipe is saved straight away: into the cookbook named in cookbook, created on first use, or else the default cookbook; no save_recipe call is needed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | recipe name; may be left empty when markup carries the recipe | |
| note | No | the user's own note on this recipe in that cookbook | |
| yield | No | ||
| markup | No | for a recipe from a web page: the page's raw HTML, or just its schema.org/Recipe JSON-LD block, as fetched by the agent; the server extracts name, ingredients, steps, times, nutrition and rating from it, so the other fields can stay empty | |
| cookbook | No | cookbook to save the recipe into, by name, e.g. 'Family recipes'; created when it does not exist yet; leave empty for the default cookbook | |
| source_url | No | the web page the recipe came from, if any; kept as attribution on the user's copy | |
| description | No | ||
| ingredients | No | one ingredient per entry, with quantities, e.g. '2 cups rolled oats' | |
| instructions | No | one step per entry | |
| total_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| cookbook | Yes |