CLI Usage
ahd-figma is optimized for agents that need deterministic tool discovery and machine-readable output.
Core Commands
Section titled “Core Commands”ahd-figma schemaahd-figma schema text.create --jsonahd-figma tools --jsonahd-figma agent-context --jsonahd-figma validate payload.jsonahd-figma command text.create '{"text":"Hello","fontSize":32}'ahd-figma batch payload.jsonahd-figma guideahd-figma mcpOutput Formats
Section titled “Output Formats”ahd-figma schema --jsonahd-figma command document.get_info --output-format jsonahd-figma batch payload.json --output-format jsonlahd-figma command document.get_selection --jq '.result[0].id'ahd-figma command document.get_selection --fields id,nameahd-figma command document.get_selection --deliver file:selection.jsonUse JSON for structured processing, JSONL for streaming batch steps, and text for human summaries.
Dry Runs
Section titled “Dry Runs”ahd-figma command text.create '{"text":"Hero","fontSize":72}' --dry-runahd-figma batch payload.json --dry-runDry runs validate schemas and design-lint risk before the plugin touches Figma.
Proof Gates
Section titled “Proof Gates”ahd-figma doctor --jsonahd-figma verify pluginahd-figma verify syntaxahd-figma verify liveahd-figma verify release