duplicate_page
Create a copy of a Figma page and its components by specifying the page ID and optional new name, returning JSON details of the duplicated page.
Instructions
Duplicate a Figma page and all its children as a new page.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the new page info as JSON.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
newPageName | No | Optional name for the new page. | |
pageId | Yes | The ID of the page to duplicate. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"newPageName": {
"description": "Optional name for the new page.",
"type": "string"
},
"pageId": {
"description": "The ID of the page to duplicate.",
"type": "string"
}
},
"required": [
"pageId"
],
"type": "object"
}