Import recipe from URL
import_recipe_from_urlImport recipes from URLs into Tandoor using built-in scraping with JSON-LD fallback, and optionally create a placeholder recipe when extraction fails.
Instructions
Import a recipe from a URL. Tries Tandoor's built-in scraper first, then fetches the page and extracts schema.org JSON-LD as a real fallback (works when Tandoor can't reach the URL or doesn't support the site). On total failure, throws with an attempts log; pass create_stub_on_failure=true to write an empty placeholder recipe instead. If all stages fail, recommend: (1) retry with create_stub_on_failure=true to capture the URL as a stub you can fill in later; (2) if the page is an image/PDF, use import_recipe_from_image (AI provider required); (3) if the URL is paywalled or JS-rendered, fall back to manual create_recipe with fields you can see.
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_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Recipe URL to import | |
| name | No | Optional name for the stub recipe (only used if create_stub_on_failure=true and both scrapers fail) | |
| format | No | Response detail level. Default "slim". | |
| create_stub_on_failure | No | Default false. When true AND both scraper attempts fail, create a minimal empty recipe pointing at the URL instead of throwing. |