Edit a design
edit_designModify an existing design by editing layer properties and text, adding or removing layers/component copies, and repairing review issues; save a copy without altering the input.
Instructions
Change an existing design (.figcraft, or .fig / .sketch / .penpot / .svg, imported best effort) and save a copy: set properties of layers by name or id, change texts, find and replace text, add layers or component copies, delete or rename layers, repair the review findings. The input file is never changed; the result goes next to it (suffix _edited) or to output_dir / output_path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"operations": "<operations>"
},
"name": "edit_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| suffix | No | _edited | |
| formats | No | ||
| preview | No | ||
| overwrite | No | Replace existing outputs. | |
| input_path | Yes | Absolute design file. | |
| operations | Yes | ||
| output_dir | No | Absolute output folder (default: next to the input; required for new files). | |
| output_path | No | Absolute output file for the first format (its extension must match). |