Live trace script for AI