Skip to main content

Overview

The read_design_strategy prompt provides AI agents with guidelines for extracting information from existing Figma designs. It emphasizes starting with user selection and understanding the design structure.

When to Use

Use this prompt when:
  • Analyzing existing designs
  • Understanding user-selected elements
  • Extracting design specifications
  • Planning modifications to existing layouts
  • Documenting design systems

Key Principles

1. Start with Selection

Always begin by reading the current selection:

2. Handle Empty Selection

If no selection exists:
  • Ask the user to select one or more nodes in Figma
  • Provide clear instructions on what to select
  • Explain why selection is needed for the task

3. Understanding Selection Context

After getting the selection, analyze:
  • Node types (FRAME, TEXT, COMPONENT, INSTANCE, etc.)
  • Hierarchy and parent-child relationships
  • Naming patterns and structure
  • Visual properties (colors, sizes, spacing)

Reading Tools

read_my_design()

Best for: Getting detailed information about the current selection with full context.

get_selection()

Best for: Getting basic info about selected nodes without deep details.

get_node_info(nodeId)

Best for: Getting detailed information about a specific node by ID.

get_nodes_info(nodeIds)

Best for: Getting information about multiple nodes efficiently.

Workflow Examples

Example 1: Analyzing a Screen Layout

Example 2: Reading Text Content

Example 3: Understanding Component Usage

Best Practices

Always Check Selection First

Use Appropriate Scanning Tools

For text analysis:
For component analysis:
For frame hierarchy:

Handle Large Designs

For designs with many nodes, use chunking: