{
  "name": "kitbitz_sync",
  "description": "Download the Kitbitz illustration mirror into files/kit/kitbitz/ — a one-time 0.3 MB catalog of all 2,043 CC0 hand-drawn illustrations, plus each kit's artwork on demand. Verifies every file against a sha256 pinned in the skill before unpacking, refuses on a mismatch, and is safe to run again (it resumes a cut-short download). Run it once before any other kitbitz tool; kitbitz_fetch calls it for you when a kit's artwork is missing.",
  "parameters": {
    "properties": {
      "kits": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Which kits' artwork to download now, by name: barbieland, city, cyberpunk, dungeon, halloween, interior, medieval, nature, pirate, ruins, space, western, winter — or \"all\" for every one (77 MB, which will usually exceed the 120s tool timeout; do a few kits at a time instead). Leave it out to fetch only the catalog, which is enough to search everything."
      },
      "force": {
        "type": "boolean",
        "description": "Re-download and re-verify even when the pack is already installed. Use after a failed or corrupted sync."
      }
    },
    "required": []
  },
  "run": "NODE_BIN=\"$(command -v node || true)\"; if [ -z \"$NODE_BIN\" ]; then echo 'kitbitz_sync: node not found on PATH' >&2; exit 2; fi; S=\"skills/kitbitz/tools/kitbitz_sync/sync.mjs\"; if [ ! -f \"$S\" ]; then echo 'kitbitz_sync: sync.mjs not found — this tool runs from an installed kitbitz skill folder (skills/kitbitz/)' >&2; exit 2; fi; exec \"$NODE_BIN\" \"$S\""
}
