get_figma_image
Export images from Figma design nodes using file URLs with node IDs. Supports PNG, JPG, SVG, and PDF formats with adjustable scale settings for precise image extraction.
Instructions
根据Figma URL获取节点的图片
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | 图片格式,默认为png | png |
scale | No | 图片缩放比例,默认为1 | |
url | Yes | Figma文件URL,必须包含node-id参数 |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "png",
"description": "图片格式,默认为png",
"enum": [
"png",
"jpg",
"svg",
"pdf"
],
"type": "string"
},
"scale": {
"default": 1,
"description": "图片缩放比例,默认为1",
"maximum": 4,
"minimum": 0.01,
"type": "number"
},
"url": {
"description": "Figma文件URL,必须包含node-id参数",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}