Import from an external source
import_from_sourceImport a recipe or lab protocol from an external source into a Rhylthyme program. Sources: spoonacular (recipes, preferred), themealdb (recipes, fallback), protocolsio (lab protocols), cooklang (.cook recipe URL — action must be 'import', query is the URL; GitHub blob URLs are auto-converted), opentrons (Opentrons Protocol API v2 .py — pass URL as query, or paste source via text; action must be 'import'), benchling (the user's connected library). Actions: search (no login needed), import and random (need the user's Rhylthyme token from login). After import, run the returned program through visualize_schedule. Pass enrich: true with action='import' to split the import into parallel tracks with cross-track triggers (one model call, capped per day; inferred steps are marked metadata.inferred).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw source text (Opentrons .py) when the user pasted it instead of a URL. | |
| query | No | Search keywords (search), or the URL / id to import (import). | |
| token | No | User's Rhylthyme access token from the **login** tool. Required for action='import' and action='random' on every source, and for anything with source='benchling'. Not needed for action='search' on public sources. | |
| action | Yes | ||
| enrich | No | Split the import into parallel tracks with cross-track triggers (action='import' only). Runs the relationship turn of the plan_schedule prompt server-side against the imported step list: steps, durations and resources are kept as imported, tracks and start triggers are inferred, and any step the model adds is marked `metadata.inferred`. Costs a model call and is capped per day; if it fails you still get the un-enriched program. | |
| source | Yes |