Importér opskrift
import_recipeUse this when the user wants a recipe from a web page, such as a food blog, imported into Goma from its link, as the Goma app's Importér opskrift does. Goma reads the page and saves the recipe among the user's own recipes, public on Goma with the source site credited as author and linked; the method may stay on the source page. If Goma already has the recipe from that link, it is returned with alreadyInGoma true and nothing is saved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "import_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The recipe page's https link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The recipe's page on goma.gg, or Dine opskrifter for a private recipe. | |
| title | Yes | ||
| author | Yes | The source credited as the recipe's author. | |
| imageUrl | Yes | The recipe's photo; a new recipe has none. | |
| isPublic | Yes | ||
| recipeId | Yes | ||
| servings | Yes | ||
| sourceUrl | Yes | The page the recipe comes from. | |
| ingredients | Yes | ||
| instructions | Yes | ||
| alreadyInGoma | Yes | Goma already had the recipe from this link; nothing new was saved. | |
| totalTimeMinutes | Yes |