# Get figma design

Tool: `veryfront__get_figma_design`

Read a Figma file or one of its nodes as structured text when importing a design into a project; returns YAML design data, cut with a note when it is over 100,000 characters, or the frame list to choose from for a section with several frames. Requires project.read.

## Arguments

| Name                | Type   | Required | Description                                                                    |
| ------------------- | ------ | -------- | ------------------------------------------------------------------------------ |
| `project_reference` | string |          | Project ID or slug                                                             |
| `figma_url`         | string | Yes      | Figma file URL or file key (e.g., "<https://www.figma.com/design/ABC123/>...") |
| `node_id`           | string |          | Specific node/frame ID (overrides node-id from URL)                            |
| `depth`             | number |          | Max tree depth to traverse (default: 10 for specific nodes, 2 for full files)  |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__get_figma_design",
    "arguments": {
      "figma_url": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"content\":[{\"type\":\"text\",\"text\":\"string\"}]}"
      }
    ],
    "structuredContent": {
      "content": [
        {
          "type": "text",
          "text": "string"
        }
      ]
    }
  }
}
```
