{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Duplicates a main file or branch into the specified folder as a new standalone file. The source file and destination folder must belong to the Enterprise plan associated with the private OAuth app. The authenticated user must be able to export the source file, edit the destination folder, and create files of the source editor type.\n\nThe copy uses the source's latest saved checkpoint and may not include recent unsaved changes. This endpoint is available only to Enterprise plans.","properties":{"path":{"type":"object","properties":{"file_key":{"type":"string","description":"The key of the main file or branch to duplicate."}},"required":["file_key"],"additionalProperties":false},"body":{"type":"object","properties":{"folder_id":{"type":"string","description":"The ID of the folder to create the duplicated file in."}},"required":["folder_id"]}},"required":["path","body"],"additionalProperties":false},"name":"Duplicate a file","id":"figma.postfileduplicate","example":{"path":{"file_key":"example"},"body":{"folder_id":"example"}},"maxRequests":1,"summary":false}}