figma_get_canvas_layout
Inspect top-level frames and artboards on the active Figma page to get coordinates and bounding boxes, plus a suggested position for placing new screens without overlap.
Instructions
Inspect top-level frames and artboards on the active Figma page to prevent overlap. Returns all screen coordinates, bounding box, and a calculated 'suggestedNextPosition' for placing new artboards safely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | Spacing in pixels between artboards (default: 80) | |
| limit | No | Maximum number of artboards to list, to prevent token bloat on pages with hundreds of frames (default: 200) | |
| layout | No | 'row' (default) places along one axis per `direction`, like before. 'grid' shelf-packs into a `columns`-wide grid so a run of generated screens fills a compact rectangle instead of one long ribbon. | |
| target | No | fileName of a specific connected Figma document, when more than one is open (see figma_list_targets). | |
| columns | No | Column count for layout: 'grid' (default: 4). | |
| direction | No | Placement direction relative to existing screens ('RIGHT' or 'BOTTOM', default: 'RIGHT') |