Quick Start
Start with schema discovery, validate before writing, run the batch, then audit and export.
1. Discover a Command
Section titled “1. Discover a Command”ahd-figma schema text.create --jsonahd-figma schema layout.pricing_grid --json2. Validate a Payload
Section titled “2. Validate a Payload”ahd-figma validate docs/examples/live-acceptance-full-parity.json3. Run a Batch
Section titled “3. Run a Batch”ahd-figma batch docs/examples/live-acceptance-full-parity.jsonBatch payloads may be a plain array or an object with an operations array.
4. Audit Accessibility
Section titled “4. Audit Accessibility”ahd-figma command document.accessibility_audit \ '{"file":"docs/examples/live-acceptance-full-parity.json"}'The audit checks contrast, line height, target size, non-text contrast, semantic names, color-only communication, and focus ambiguity.
5. Export
Section titled “5. Export”ahd-figma command export.image '{"nodeId":"FRAME_ID","scale":2}'For very large frames, use scale: 1 to avoid oversized exports.