mac_recipe_import
Import .mac-recipe.json bundles from a file path or inline JSON, resolving name conflicts by skipping, renaming, or replacing existing recipes.
Instructions
Import a .mac-recipe.json bundle (inline or file path). Conflict policy: skip | rename | replace.
Examples:
From file: { inputPath: "~/recipes/team-bundle.json" }
From file with replace policy: { inputPath: "~/recipes/team.json", onConflict: "replace" }
Inline bundle: { bundle: { format: "mac-recipe-bundle/v1", exportedAt: "...", recipes: [...] } }
Conflict policy:
"skip" (default): keep existing recipe
"rename": append "-imported-N" until name is unique
"replace": delete existing first
Limitations:
Provide exactly one of
bundleorinputPath.Bundle format major version is enforced — v2 bundles rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | No | Inline bundle object (format: mac-recipe-bundle/v1) | |
| inputPath | No | Path to bundle file (must be under $HOME and end with .json) | |
| onConflict | No | How to handle existing recipes with the same name (default: skip) |