ygo_script_insights
Analyze Yu-Gi-Oh! card Lua scripts to explain effects, costs, targets, turn limits, and structural risks; aggregate script folders to reveal effect and trigger patterns.
Instructions
Deep card-script analysis. card mode explains every effect: kind (ignition/trigger/quick/continuous/flip/summon), trigger event, whether the condition/cost/target/operation pipeline is complete, what it costs, whether it targets, reset duration, hard/soft/duel once-per-turn, plus structural risks (missing LoadScript, invalid constants, target without operation, skeleton code) and complexity metrics. corpus mode aggregates a whole folder of scripts: effect-kind distribution, most common trigger events and categories, count-limit mix, recurring risks and the worst offenders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Folder of c<id>.lua files (corpus mode; defaults to the cached official scripts) | |
| mode | No | card = one script; corpus = aggregate a folder | card |
| limit | No | Maximum scripts to scan in corpus mode | |
| luaCode | No | Raw Lua (card mode) | |
| luaPath | No | Path to a .lua file (card mode) | |
| cardName | No | Card name, resolved to a passcode (card mode) | |
| passcode | No | Card passcode (card mode) |