Gets the project pages, design pages, and components XML, with information of the currently focused page or component.
Framer is a website builder and design tool. This tool should ALWAYS be called at the start of any session involving a Framer project to understand the project structure.
This tool returns:
Project web pages, design pages, components, code files, and styles
Complete documentation for all available node attributes (opacity, width, layout, etc.)
Pre-built section components for quickly adding hero, pricing, footer, testimonials, and other sections
Currently focused page, design page, or component ID
This tool also returns the ID of the currently focused page, design page, or component node. When you create a ComponentInstance via updateXmlForNode, it will be inserted into this focused page or component.
The referenced nodeIds can be used with getNodeXml to get the XML of a specific page, design page, or component.
Each element in the XML is usually referred as a "node" but the user could also refer to it as a "layer" or "element". The XML structure is similar to Framer's XML layers tree, names are extracted from the layers names given by the user.
To get insert URLs for components, use the getComponentInsertUrlAndTypes tool.