analyze_page_structure
Analyze Figma page structure to identify sections, estimate token usage, and recommend optimal agent allocation for parallel implementation work.
Instructions
Analyze page structure BEFORE any implementation.
MUST BE CALLED FIRST for any large page/frame.
HOW IT WORKS:
Identifies sections by background color changes
Detects transition elements spanning multiple sections
Groups icons by section
Estimates token usage
Recommends agent count for parallel work
RETURNS:
sections: List with id, name, bgColor, bounds, complexity
transition_elements: Elements spanning multiple sections
icons_by_section: Icons organized by section
total_estimated_tokens: Token estimate for full frame
recommended_division: 'single' or 'multiple'
recommended_agent_count: How many agents to use
TYPICAL WORKFLOW:
analyze_page_structure → understand structure
If recommended_division='multiple': use get_section_screenshot
Each agent uses get_agent_context for its section
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | Figma file key from URL | |
| page_name | Yes | Page name (partial match) | |
| frame_name | Yes | Frame name (partial match) |