#!/bin/bash
# This script will be called after Claude gets the card info via the MCP tool
# and passes it as JSON to process

card_json="$1"

if [ -z "$card_json" ]; then
    echo '{"error": "No card JSON provided"}'
    exit 1
fi

# Pass to Python helper
echo "$card_json" | python3 /opt/automator/cinik-writer-transtor/files/_get_card_and_share.py
